PHP Class Doctrine\Common\Persistence\AbstractManagerRegistry

Since: 2.2
Author: Fabien Potencier ([email protected])
Author: Benjamin Eberlei ([email protected])
Author: Lukas Kahwe Smith ([email protected])
Inheritance: implements Doctrine\Common\Persistence\ManagerRegistry
Afficher le fichier Open project: doctrine/common Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $name, array $connections, array $managers, string $defaultConnection, string $defaultManager, string $proxyInterfaceName ) Constructor.
getConnection ( $name = null )
getConnectionNames ( )
getConnections ( )
getDefaultConnectionName ( )
getDefaultManagerName ( )
getManager ( $name = null )
getManagerForClass ( $class )
getManagerNames ( )
getManagers ( )
getName ( ) : string Gets the name of the registry.
getRepository ( $persistentObjectName, $persistentManagerName = null )
resetManager ( $name = null )

Méthodes protégées

Méthode Description
getService ( string $name ) : object Fetches/creates the given services.
resetService ( string $name ) : void Resets the given services.

Method Details

__construct() public méthode

Constructor.
public __construct ( string $name, array $connections, array $managers, string $defaultConnection, string $defaultManager, string $proxyInterfaceName )
$name string
$connections array
$managers array
$defaultConnection string
$defaultManager string
$proxyInterfaceName string

getConnection() public méthode

public getConnection ( $name = null )

getConnectionNames() public méthode

public getConnectionNames ( )

getConnections() public méthode

public getConnections ( )

getDefaultConnectionName() public méthode

getDefaultManagerName() public méthode

getManager() public méthode

public getManager ( $name = null )

getManagerForClass() public méthode

public getManagerForClass ( $class )

getManagerNames() public méthode

public getManagerNames ( )

getManagers() public méthode

public getManagers ( )

getName() public méthode

Gets the name of the registry.
public getName ( ) : string
Résultat string

getRepository() public méthode

public getRepository ( $persistentObjectName, $persistentManagerName = null )

getService() abstract protected méthode

A service in this context is connection or a manager instance.
abstract protected getService ( string $name ) : object
$name string The name of the service.
Résultat object The instance of the given service.

resetManager() public méthode

public resetManager ( $name = null )

resetService() abstract protected méthode

A service in this context is connection or a manager instance.
abstract protected resetService ( string $name ) : void
$name string The name of the service.
Résultat void