PHP 클래스 Bisna\Doctrine\Container

저자: Guilherme Blanco ([email protected])
파일 보기 프로젝트 열기: guilhermeblanco/zendframework1-doctrine2

공개 프로퍼티들

프로퍼티 타입 설명
$defaultCacheInstance Default Cache Instance name.
$defaultConnection Default DBAL Connection name.
$defaultDocumentManager Default ODM DocumentManager name.
$defaultEntityManager Default ORM EntityManager name.

공개 메소드들

메소드 설명
__construct ( array $config = [] ) Constructor.
getCacheInstance ( string $cacheName = null ) : Doctrine\Common\Cache\Cache Retrieve Cache Instance based on its name. If no argument is provided, it will attempt to get the default Instance.
getCacheInstanceNames ( ) : array Retrieves a list of names for all cache instances configured
getConnection ( string $connName = null ) : Doctrine\DBAL\Connection Retrieve DBAL Connection based on its name. If no argument is provided, it will attempt to get the default Connection.
getConnectionNames ( ) : array Retrieves a list of names for all Connections configured and/or loaded
getDocumentManager ( string $dmName = null ) : DocumentManager Retrieve ODM DocumentManager based on its name. If no argument provided, it will attempt to get the default DocumentManager.
getEntityManager ( string $emName = null ) : EntityManager Retrieve ORM EntityManager based on its name. If no argument provided, it will attempt to get the default EntityManager.
getEntityManagerNames ( ) : array Retrieves a list of names for all Entity Managers configured and/or loaded

비공개 메소드들

메소드 설명
prepareCacheInstanceConfiguration ( array $config = [] ) : array Prepare Cache Instances configurations.
prepareDBALConfiguration ( array $config = [] ) : array Prepare DBAL Connections configurations.
prepareODMConfiguration ( array $config = [] ) : array Prepare ODM EntityManagers configurations.
prepareORMConfiguration ( array $config = [] ) : array Prepare ORM EntityManagers configurations.
registerClassLoaders ( array $config = [] ) Register Doctrine Class Loaders
startAnnotationRegistry ( array $config ) Initialize ORM Metadata Annotation Registry driver
startCacheInstance ( array $config = [] ) : Doctrine\Common\Cache\Cache Initialize Cache Instance.
startDBALConfiguration ( array $config = [] ) : Doctrine\DBAL\Configuration Initialize the DBAL Configuration.
startDBALConnection ( array $config = [] ) : Doctrine\DBAL\Connection Initialize the DBAL Connection.
startDBALEventManager ( array $config = [] ) : Doctrine\Common\EventManager Initialize the EventManager.
startODMConfiguration ( array $config = [] ) : Configuration Initialize ODM Configuration.
startODMDocumentManager ( array $config = [] ) : DocumentManager Initialize the ODM Document Manager
startODMMetadata ( array $config = [] ) : Doctrine\ODM\MongoDB\Mapping\Driver\DriverChain Initialize ODM Metadata drivers.
startORMConfiguration ( array $config = [] ) : Doctrine\ORM\Configuration Initialize ORM Configuration.
startORMEntityManager ( array $config = [] ) : EntityManager Initialize ORM EntityManager.
startORMMetadata ( array $config = [] ) : Doctrine\ORM\Mapping\Driver\DriverChain Initialize ORM Metadata drivers.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $config = [] )
$config array Doctrine Container configuration

getCacheInstance() 공개 메소드

If Cache Instance name could not be found, NameNotFoundException is thrown.
public getCacheInstance ( string $cacheName = null ) : Doctrine\Common\Cache\Cache
$cacheName string Optional Cache Instance name
리턴 Doctrine\Common\Cache\Cache Cache Instance

getCacheInstanceNames() 공개 메소드

Retrieves a list of names for all cache instances configured
public getCacheInstanceNames ( ) : array
리턴 array

getConnection() 공개 메소드

If DBAL Connection name could not be found, NameNotFoundException is thrown.
public getConnection ( string $connName = null ) : Doctrine\DBAL\Connection
$connName string Optional DBAL Connection name
리턴 Doctrine\DBAL\Connection DBAL Connection

getConnectionNames() 공개 메소드

Retrieves a list of names for all Connections configured and/or loaded
public getConnectionNames ( ) : array
리턴 array

getDocumentManager() 공개 메소드

If ODM DocumentManager name could not be found, NameNotFoundException is thrown.
public getDocumentManager ( string $dmName = null ) : DocumentManager
$dmName string Optional ODM DocumentManager name
리턴 Doctrine\ODM\MongoDB\DocumentManager

getEntityManager() 공개 메소드

If ORM EntityManager name could not be found, NameNotFoundException is thrown.
public getEntityManager ( string $emName = null ) : EntityManager
$emName string Optional ORM EntityManager name
리턴 Doctrine\ORM\EntityManager ORM EntityManager

getEntityManagerNames() 공개 메소드

Retrieves a list of names for all Entity Managers configured and/or loaded
public getEntityManagerNames ( ) : array
리턴 array

프로퍼티 상세

$defaultCacheInstance 공개적으로 프로퍼티

Default Cache Instance name.
public $defaultCacheInstance

$defaultConnection 공개적으로 프로퍼티

Default DBAL Connection name.
public $defaultConnection

$defaultDocumentManager 공개적으로 프로퍼티

Default ODM DocumentManager name.
public $defaultDocumentManager

$defaultEntityManager 공개적으로 프로퍼티

Default ORM EntityManager name.
public $defaultEntityManager