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
Show file Open project: doctrine/common Class Usage Examples

Public Methods

Method 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 )

Protected Methods

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

Method Details

__construct() public method

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 method

public getConnection ( $name = null )

getConnectionNames() public method

public getConnectionNames ( )

getConnections() public method

public getConnections ( )

getDefaultConnectionName() public method

getDefaultManagerName() public method

getManager() public method

public getManager ( $name = null )

getManagerForClass() public method

public getManagerForClass ( $class )

getManagerNames() public method

public getManagerNames ( )

getManagers() public method

public getManagers ( )

getName() public method

Gets the name of the registry.
public getName ( ) : string
return string

getRepository() public method

public getRepository ( $persistentObjectName, $persistentManagerName = null )

getService() abstract protected method

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

resetManager() public method

public resetManager ( $name = null )

resetService() abstract protected method

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