class WonkaExtension extends Extension

Class WonkaExtension.

Traits

Class ContainerAwareTrait.

Methods

setContainer( ContainerInterface $container = null)

Sets the container.

ContainerInterface
getContainer()

Getter for container property.

bool
hasContainer()

Checker for container property.

mixed
getContainerParameter( string $parameter)

Get a parameter from the container.

bool
hasContainerParameter( string $parameter)

Checks if the container parameter exists.

mixed
getContainerService( string $service)

Get a service from the container.

bool
hasContainerService( string $service)

Checks if the container service exists.

$this
load( array $configs, ContainerBuilder $container)

Loads the configuration (builds the container).

from Extension
$this
handleConfigsToParameterWhenArrayInt( string $id, mixed $value)

Set or update a parameter when its value is an integer array.

from Extension
$this
handleConfigsToParameterWhenArrayHash( string $id, mixed $value, string $search = '', string $replace = '')

Set a new parameter within the container when it is an array hash.

from Extension
$this
handleConfigsToParameterWhenNotArray( string $id, mixed $value)

Set a new parameter within the container when it is a flat value (non-array).

from Extension
$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.

from Extension

Details

in ContainerAwareTrait at line line 34
setContainer( ContainerInterface $container = null)

Sets the container.

Parameters

ContainerInterface $container

in ContainerAwareTrait at line line 44
ContainerInterface getContainer()

Getter for container property.

Return Value

ContainerInterface

in ContainerAwareTrait at line line 54
bool hasContainer()

Checker for container property.

Return Value

bool

in ContainerAwareTrait at line line 68
mixed getContainerParameter( string $parameter)

Get a parameter from the container.

Parameters

string $parameter

Return Value

mixed

Exceptions

InvalidContainerParameterException

in ContainerAwareTrait at line line 86
bool hasContainerParameter( string $parameter)

Checks if the container parameter exists.

Parameters

string $parameter

Return Value

bool

in ContainerAwareTrait at line line 100
mixed getContainerService( string $service)

Get a service from the container.

Parameters

string $service

Return Value

mixed

Exceptions

InvalidContainerServiceException

in ContainerAwareTrait at line line 118
bool hasContainerService( string $service)

Checks if the container service exists.

Parameters

string $service

Return Value

bool

in Extension at line line 149
$this load( array $configs, ContainerBuilder $container)

Loads the configuration (builds the container).

Parameters

array $configs collection of configs to load
ContainerBuilder $container symfony config container

Return Value

$this

in Extension at line line 354
$this handleConfigsToParameterWhenArrayInt( string $id, mixed $value)

Set or update a parameter when its value is an integer array.

Parameters

string $id
mixed $value

Return Value

$this

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.

Parameters

string $id
mixed $value
string $search
string $replace

Return Value

$this

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).

Parameters

string $id
mixed $value

Return Value

$this

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.

Parameters

string|array $indexPartSet
mixed $value

Return Value

$this