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)
Process constants recursively.
static mixed
prefixServiceName(mixed $config, string $namespace)
Replaces @extension with real extension name in service definition.
static string|null
static string
ensureClassType(Type|null $type, string $hint, string $descriptor = '', bool $allowNullable = false)
No description
static string
normalizeClass(string $type)
No description
static mixed
convertType(mixed $value, string $type)
Non data-loss type conversion.
static string
describeExpression(Expression|string $expr, bool $inner = false)
No description
Details
at line 33
static mixed
expand(mixed $var, array $params, bool|array $recursive = false)
Expands %placeholders%.
at line 139
static mixed
escape(mixed $value)
Escapes '%' and '@'
at line 160
static array
filterArguments(array $args)
Process constants recursively.
at line 181
static mixed
prefixServiceName(mixed $config, string $namespace)
Replaces @extension with real extension name in service definition.
at line 206
static string|null
parseAnnotation(Reflector $ref, string $name)
No description
at line 222
static string
ensureClassType(Type|null $type, string $hint, string $descriptor = '', bool $allowNullable = false)
No description
at line 245
static string
normalizeClass(string $type)
No description
at line 257
static mixed
convertType(mixed $value, string $type)
Non data-loss type conversion.
at line 280
static string
describeExpression(Expression|string $expr, bool $inner = false)
No description
Traits
StaticClass