Doctrine\Bundle\DoctrineBundle\DependencyInjection\DoctrineExtension
DoctrineExtension is an extension for the Doctrine DBAL and ORM library.
- Author: Jonathan H. Wage <jonwage@gmail.com>
Synopsis
class DoctrineExtension
extends AbstractDoctrineExtension
{
- // members
- private $defaultConnection;
- private $entityManagers;
- // Inherited members from AbstractDoctrineExtension
- protected array $aliasMap;
- protected array $drivers;
- // methods
- public void load()
- protected void dbalLoad()
- protected void loadDbalConnection()
- protected void getConnectionOptions()
- protected void ormLoad()
- protected void loadOrmEntityManager()
- protected void loadOrmEntityManagerMappingInformation()
- protected void getObjectManagerElementName()
- protected void getMappingObjectDefaultName()
- protected void getMappingResourceConfigDirectory()
- protected void getMappingResourceExtension()
- protected void loadOrmCacheDrivers()
- public void getXsdValidationBasePath()
- public void getNamespace()
- public void getConfiguration()
- // Inherited methods from AbstractDoctrineExtension
- protected void loadMappingInformation()
- protected void setMappingDriverAlias()
- protected void setMappingDriverConfig()
- protected array|false getMappingDriverBundleConfigDefaults()
- protected void registerMappingDrivers()
- protected void assertValidMappingConfiguration()
- protected string|null detectMetadataDriver()
- protected void loadObjectManagerCacheDriver()
- protected abstract string getObjectManagerElementName()
- protected abstract string getMappingObjectDefaultName()
- protected abstract string getMappingResourceConfigDirectory()
- protected abstract string getMappingResourceExtension()
- // Inherited methods from Extension
- public array getClassesToCompile()
- public void addClassesToCompile()
- // Inherited methods from Extension
- public string getXsdValidationBasePath()
- public string getNamespace()
- public string getAlias()
- public void getConfiguration()
- protected final void processConfiguration()
- protected Boolean isConfigEnabled()
Hierarchy
Members
private
- $defaultConnection
- $entityManagers
protected
- $aliasMap
—
array
Used inside metadata driver method to simplify aggregation of data. - $drivers
—
array
Used inside metadata driver method to simplify aggregation of data.
Methods
protected
- dbalLoad() — Loads the DBAL configuration.
- getConnectionOptions()
- getMappingObjectDefaultName()
- getMappingResourceConfigDirectory() — {@inheritDoc}
- getMappingResourceExtension() — {@inheritDoc}
- getObjectManagerElementName() — {@inheritDoc}
- loadDbalConnection() — Loads a configured DBAL connection.
- loadOrmCacheDrivers() — Loads a configured entity managers cache drivers.
- loadOrmEntityManager() — Loads a configured ORM entity manager.
- loadOrmEntityManagerMappingInformation() — Loads an ORM entity managers bundle mapping information.
- ormLoad() — Loads the Doctrine ORM configuration.
public
- getConfiguration() — {@inheritDoc}
- getNamespace() — {@inheritDoc}
- getXsdValidationBasePath() — {@inheritDoc}
- load() — {@inheritDoc}
Inherited from Symfony\Bridge\Doctrine\DependencyInjection\AbstractDoctrineExtension
protected
- assertValidMappingConfiguration() — Assertion if the specified mapping information is valid.
- detectMetadataDriver() — Detects what metadata driver to use for the supplied directory.
- getMappingDriverBundleConfigDefaults() — If this is a bundle controlled mapping all the missing information can be autodetected by this method.
- getMappingObjectDefaultName() — Noun that describes the mapped objects such as Entity or Document.
- getMappingResourceConfigDirectory() — Relative path from the bundle root to the directory where mapping files reside.
- getMappingResourceExtension() — Extension used by the mapping files.
- getObjectManagerElementName() — Prefixes the relative dependency injection container path with the object manager prefix.
- loadMappingInformation()
- loadObjectManagerCacheDriver() — Loads a configured object manager metadata, query or result cache driver.
- registerMappingDrivers() — Register all the collected mapping information with the object manager by registering the appropriate mapping drivers.
- setMappingDriverAlias() — Register the alias for this mapping driver.
- setMappingDriverConfig() — Register the mapping driver configuration for later use with the object managers metadata driver chain.
Inherited from Symfony\Component\HttpKernel\DependencyInjection\Extension
public
- addClassesToCompile() — Adds classes to the class cache.
- getClassesToCompile() — Gets the classes to cache.
Inherited from Symfony\Component\DependencyInjection\Extension\Extension
protected
public
- getAlias() — Returns the recommended alias to use in XML.
- getConfiguration() — {@inheritDoc}
- getNamespace() — Returns the namespace to be used for this extension (XML namespace).
- getXsdValidationBasePath() — Returns the base path for the XSD files.