1 | <?php |
||
10 | class ContainerService |
||
11 | { |
||
12 | /** |
||
13 | * @var PimpleContainer |
||
14 | */ |
||
15 | private $container; |
||
16 | 5 | ||
17 | /** |
||
18 | 5 | * @var DbCredentials |
|
19 | 5 | */ |
|
20 | 5 | private $credentials; |
|
21 | 1 | ||
22 | 1 | /** |
|
23 | 5 | * @var array |
|
24 | */ |
||
25 | private $paths; |
||
26 | |||
27 | public function __construct(){} |
||
29 | |||
30 | 3 | public static function getInstance() |
|
40 | |||
41 | 2 | ||
42 | /** |
||
43 | 2 | * @return PimpleContainer |
|
44 | */ |
||
45 | 2 | public function getContainer() |
|
67 | |||
68 | |||
69 | |||
70 | /** |
||
71 | 4 | * @param string $path |
|
72 | * @return $this |
||
73 | 4 | */ |
|
74 | public function addEntityPath($path) |
||
82 | |||
83 | /** |
||
84 | * @return array |
||
85 | */ |
||
86 | public function getEntityPaths() |
||
90 | 2 | ||
91 | 2 | /** |
|
92 | * @return DbCredentials |
||
93 | */ |
||
94 | public function getDbCredentials() |
||
98 | |||
99 | /** |
||
100 | * @param DbCredentials $credentials |
||
101 | * @return $this |
||
102 | */ |
||
103 | public function setDbCredentials(DbCredentials $credentials) |
||
108 | |||
109 | |||
110 | public function registerToContainer(RegistrationInterface $config) |
||
114 | } |
||
115 |