Configuration
in package
implements
ConfigurationInterface
This class contains the configuration information for the bundle
This information is solely responsible for how the different configuration sections are normalized, and merged.
Interfaces, Classes, Traits and Enums
- ConfigurationInterface
- Configuration interface.
Table of Contents
- $debug : bool
- __construct() : mixed
- getConfigTreeBuilder() : TreeBuilder
- Generates the configuration tree builder.
- addDbalSection() : void
- Add DBAL section to configuration tree
- addOrmSection() : void
- Add the ORM section to configuration tree
- configureDbalDriverNode() : void
- Adds config keys related to params processed by the DBAL drivers
- getAutoGenerateModes() : array<string|int, mixed>
- Find proxy auto generate modes for their names and int values
- getDbalConnectionsNode() : ArrayNodeDefinition
- Return the dbal connections node
- getDeprecationMsg() : array<string|int, mixed>
- Returns the correct deprecation param's as an array for setDeprecated.
- getOrmCacheDriverNode() : ArrayNodeDefinition
- Return a ORM cache driver node for an given entity manager
- getOrmEntityListenersNode() : NodeDefinition
- Return ORM entity listener node
- getOrmEntityManagersNode() : ArrayNodeDefinition
- Return ORM entity manager node
- getOrmTargetEntityResolverNode() : NodeDefinition
- Return ORM target entity resolver node
Properties
$debug
private
bool
$debug
Methods
__construct()
public
__construct(bool $debug) : mixed
Parameters
- $debug : bool
-
Whether to use the debug mode
Return values
mixed —getConfigTreeBuilder()
Generates the configuration tree builder.
public
getConfigTreeBuilder() : TreeBuilder
Return values
TreeBuilder —addDbalSection()
Add DBAL section to configuration tree
private
addDbalSection(ArrayNodeDefinition $node) : void
Parameters
- $node : ArrayNodeDefinition
Return values
void —addOrmSection()
Add the ORM section to configuration tree
private
addOrmSection(ArrayNodeDefinition $node) : void
Parameters
- $node : ArrayNodeDefinition
Return values
void —configureDbalDriverNode()
Adds config keys related to params processed by the DBAL drivers
private
configureDbalDriverNode(ArrayNodeDefinition $node) : void
These keys are available for replica configurations too.
Parameters
- $node : ArrayNodeDefinition
Return values
void —getAutoGenerateModes()
Find proxy auto generate modes for their names and int values
private
getAutoGenerateModes() : array<string|int, mixed>
Return values
array<string|int, mixed> —getDbalConnectionsNode()
Return the dbal connections node
private
getDbalConnectionsNode() : ArrayNodeDefinition
Return values
ArrayNodeDefinition —getDeprecationMsg()
Returns the correct deprecation param's as an array for setDeprecated.
private
getDeprecationMsg(string $message, string $version) : array<string|int, mixed>
Symfony/Config v5.1 introduces a deprecation notice when calling setDeprecation() with less than 3 args and the getDeprecation method was introduced at the same time. By checking if getDeprecation() exists, we can determine the correct param count to use when calling setDeprecated.
Parameters
- $message : string
- $version : string
Return values
array<string|int, mixed> —getOrmCacheDriverNode()
Return a ORM cache driver node for an given entity manager
private
getOrmCacheDriverNode(string $name) : ArrayNodeDefinition
Parameters
- $name : string
Return values
ArrayNodeDefinition —getOrmEntityListenersNode()
Return ORM entity listener node
private
getOrmEntityListenersNode() : NodeDefinition
Return values
NodeDefinition —getOrmEntityManagersNode()
Return ORM entity manager node
private
getOrmEntityManagersNode() : ArrayNodeDefinition
Return values
ArrayNodeDefinition —getOrmTargetEntityResolverNode()
Return ORM target entity resolver node
private
getOrmTargetEntityResolverNode() : NodeDefinition