EnableableExtension
class EnableableExtension extends Extension
Class EnableableExtension.
Traits
Methods
Get a parameter from the container.
Checks if the container parameter exists.
Get a service from the container.
Checks if the container service exists.
Loads the configuration (builds the container).
Set or update a parameter when its value is an integer array.
Set a new parameter within the container when it is an array hash.
Set a new parameter within the container when it is a flat value (non-array).
Set a new parameter within the container when it contains an empty value/array/etc as a value.
Details
in ContainerAwareTrait at line line 34
setContainer(
ContainerInterface $container = null)
Sets the container.
in ContainerAwareTrait at line line 44
ContainerInterface
getContainer()
Getter for container property.
in ContainerAwareTrait at line line 54
bool
hasContainer()
Checker for container property.
in ContainerAwareTrait at line line 68
mixed
getContainerParameter(
string $parameter)
Get a parameter from the container.
in ContainerAwareTrait at line line 86
bool
hasContainerParameter(
string $parameter)
Checks if the container parameter exists.
in ContainerAwareTrait at line line 100
mixed
getContainerService(
string $service)
Get a service from the container.
in ContainerAwareTrait at line line 118
bool
hasContainerService(
string $service)
Checks if the container service exists.
in Extension at line line 149
$this
load(
array $configs,
ContainerBuilder $container)
Loads the configuration (builds the container).
in Extension at line line 354
$this
handleConfigsToParameterWhenArrayInt(
string $id,
mixed $value)
Set or update a parameter when its value is an integer array.
in Extension at line line 375
$this
handleConfigsToParameterWhenArrayHash(
string $id,
mixed $value,
string $search = '',
string $replace = '')
Set a new parameter within the container when it is an array hash.
in Extension at line line 390
$this
handleConfigsToParameterWhenNotArray(
string $id,
mixed $value)
Set a new parameter within the container when it is a flat value (non-array).
in Extension at line line 405
$this
handleConfigsToParameterWhenEmpty(
string|array $indexPartSet,
mixed $value)
Set a new parameter within the container when it contains an empty value/array/etc as a value.