Helpers
final class Helpers
internal |
The DI helpers.
Methods
static mixed
expand(mixed $var, array $params, bool|array $recursive = false)
Expands %placeholders%.
static mixed
escape(mixed $value)
Escapes '%' and '@'
static array
filterArguments(array $args)
Removes ... and process constants recursively.
static mixed
prefixServiceName(mixed $config, string $namespace)
Replaces @extension with real extension name in service definition.
static string|null
static Type|null
static string
ensureClassType(Type|null $type, string $hint)
No description
static string
normalizeClass(string $type)
No description
static mixed
convertType(mixed $value, string $type)
Non data-loss type conversion.
Details
at line 34
static mixed
expand(mixed $var, array $params, bool|array $recursive = false)
Expands %placeholders%.
at line 121
static mixed
escape(mixed $value)
Escapes '%' and '@'
at line 142
static array
filterArguments(array $args)
Removes ... and process constants recursively.
at line 175
static mixed
prefixServiceName(mixed $config, string $namespace)
Replaces @extension with real extension name in service definition.
at line 204
static string|null
parseAnnotation(Reflector $ref, string $name)
Returns an annotation value.
at line 219
static Type|null
getReturnTypeAnnotation(ReflectionFunctionAbstract $func)
No description
at line 233
static string
ensureClassType(Type|null $type, string $hint)
No description
at line 250
static string
normalizeClass(string $type)
No description
at line 264
static mixed
convertType(mixed $value, string $type)
Non data-loss type conversion.
Traits
Static class.