class DoctrineMongoDBExtension extends AbstractDoctrineExtension (View source)

Doctrine MongoDB ODM extension.

Methods

load(array $configs, ContainerBuilder $container)

Responds to the doctrine_mongodb configuration parameter.

overrideParameters(array $options, ContainerBuilder $container)

Uses some of the extension options to override DI extension parameters.

loadDocumentManagers(array $dmConfigs, string $defaultDM, string $defaultDB, ContainerBuilder $container)

Loads the document managers configuration.

loadDocumentManager(array $documentManager, string $defaultDM, string $defaultDB, ContainerBuilder $container)

Loads a document manager configuration.

loadConnections(array $connections, ContainerBuilder $container)

Loads the configured connections.

loadDocumentManagerBundlesMappingInformation(array $documentManager, Definition $odmConfigDef, ContainerBuilder $container)

Loads an ODM document managers bundle mapping information.

getObjectManagerElementName($name)

No description

getMappingObjectDefaultName()

No description

getMappingResourceExtension()

No description

getAlias()

No description

string
getNamespace()

Returns the namespace to be used for this extension (XML namespace).

string
getXsdValidationBasePath()

No description

Details

load(array $configs, ContainerBuilder $container)

Responds to the doctrine_mongodb configuration parameter.

Parameters

array $configs
ContainerBuilder $container

protected overrideParameters(array $options, ContainerBuilder $container)

Uses some of the extension options to override DI extension parameters.

Parameters

array $options The available configuration options
ContainerBuilder $container A ContainerBuilder instance

protected loadDocumentManagers(array $dmConfigs, string $defaultDM, string $defaultDB, ContainerBuilder $container)

Loads the document managers configuration.

Parameters

array $dmConfigs An array of document manager configs
string $defaultDM The default document manager name
string $defaultDB The default db name
ContainerBuilder $container A ContainerBuilder instance

protected loadDocumentManager(array $documentManager, string $defaultDM, string $defaultDB, ContainerBuilder $container)

Loads a document manager configuration.

Parameters

array $documentManager A document manager configuration array
string $defaultDM The default document manager name
string $defaultDB The default db name
ContainerBuilder $container A ContainerBuilder instance

protected loadConnections(array $connections, ContainerBuilder $container)

Loads the configured connections.

Parameters

array $connections
ContainerBuilder $container

protected loadDocumentManagerBundlesMappingInformation(array $documentManager, Definition $odmConfigDef, ContainerBuilder $container)

Loads an ODM document managers bundle mapping information.

There are two distinct configuration possibilities for mapping information:

  1. Specify a bundle and optionally details where the entity and mapping information reside.
  2. Specify an arbitrary mapping location.

Parameters

array $documentManager A configured ODM entity manager.
Definition $odmConfigDef A Definition instance
ContainerBuilder $container A ContainerBuilder instance

protected getObjectManagerElementName($name)

Parameters

$name

protected getMappingObjectDefaultName()

protected getMappingResourceConfigDirectory()

protected getMappingResourceExtension()

getAlias()

string getNamespace()

Returns the namespace to be used for this extension (XML namespace).

Return Value

string The XML namespace

string getXsdValidationBasePath()

Return Value

string