1 | <?php |
||
30 | class Registry extends AbstractManagerRegistry |
||
31 | { |
||
32 | |||
33 | use \Kdyby\StrictObjects\Scream; |
||
34 | |||
35 | /** |
||
36 | * @var Nette\DI\Container |
||
37 | */ |
||
38 | private $serviceLocator; |
||
39 | |||
40 | /** |
||
41 | * @param array $connections |
||
42 | * @param array $managers |
||
43 | * @param string $defaultConnection |
||
44 | * @param string $defaultManager |
||
45 | * @param \Nette\DI\Container $serviceLocator |
||
46 | */ |
||
47 | public function __construct(array $connections, array $managers, $defaultConnection, $defaultManager, Nette\DI\Container $serviceLocator) |
||
52 | |||
53 | |||
54 | |||
55 | /** |
||
56 | * Fetches/creates the given services. |
||
57 | * |
||
58 | * A service in this context is connection or a manager instance. |
||
59 | * |
||
60 | * @param string $name The name of the service. |
||
61 | * @return object The instance of the given service. |
||
62 | */ |
||
63 | protected function getService($name) |
||
67 | |||
68 | |||
69 | |||
70 | /** |
||
71 | * Resets the given services. |
||
72 | * |
||
73 | * A service in this context is connection or a manager instance. |
||
74 | * |
||
75 | * @param string $name The name of the service. |
||
76 | * @return void |
||
77 | */ |
||
78 | protected function resetService($name) |
||
82 | |||
83 | |||
84 | |||
85 | /** |
||
86 | * Resolves a registered namespace alias to the full namespace. |
||
87 | * |
||
88 | * This method looks for the alias in all registered entity managers. |
||
89 | * |
||
90 | * @see \Doctrine\ORM\Configuration::getEntityNamespace |
||
91 | * @param string $alias The alias |
||
92 | * @throws \Doctrine\ORM\ORMException |
||
93 | * @return string The full namespace |
||
94 | */ |
||
95 | public function getAliasNamespace($alias) |
||
108 | |||
109 | } |
||
110 |