You are here

protected function TestManagerRegistry::getService in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/ManagerRegistryTest.php \Doctrine\Tests\Common\Persistence\TestManagerRegistry::getService()

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

vendor/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();
}