Symfony\Bridge\Doctrine\DependencyInjection\AbstractDoctrineExtension
This abstract classes groups common code that Doctrine Object Manager extensions (ORM, MongoDB, CouchDB) need.
- Author: Benjamin Eberlei <kontakt@beberlei.de>
Synopsis
class AbstractDoctrineExtension
extends Extension
{
- // methods
- 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
Extends
Extended by
Members
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
- 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.