You are here

abstract protected function AbstractManagerRegistry::getService in Plug 7

Fetches/creates the given services.

A service in this context is connection or a manager instance.

Parameters

string $name The name of the service.:

Return value

object The instance of the given service.

5 calls to AbstractManagerRegistry::getService()
AbstractManagerRegistry::getConnection in lib/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php
Gets the named connection.
AbstractManagerRegistry::getConnections in lib/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php
Gets an array of all registered connections.
AbstractManagerRegistry::getManager in lib/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php
AbstractManagerRegistry::getManagerForClass in lib/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php
Gets the object manager associated with a given class.
AbstractManagerRegistry::getManagers in lib/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php
Gets an array of all registered object managers.
1 method overrides AbstractManagerRegistry::getService()
TestManagerRegistry::getService in lib/doctrine/common/tests/Doctrine/Tests/Common/Persistence/ManagerRegistryTest.php
Fetches/creates the given services.

File

lib/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php, line 92

Class

AbstractManagerRegistry
Abstract implementation of the ManagerRegistry contract.

Namespace

Doctrine\Common\Persistence

Code

protected abstract function getService($name);