You are here

protected function TestManagerRegistry::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.

Overrides AbstractManagerRegistry::getService

File

lib/doctrine/common/tests/Doctrine/Tests/Common/Persistence/ManagerRegistryTest.php, line 80

Class

TestManagerRegistry

Namespace

Doctrine\Tests\Common\Persistence

Code

protected function getService($name) {
  return new TestManager();
}