1 | <?php |
||
14 | class EntityManagerModule extends AbstractModule |
||
15 | { |
||
16 | /** |
||
17 | * Constructor. |
||
18 | * |
||
19 | * @param array $params |
||
20 | * @param array|string $entityDir |
||
21 | */ |
||
22 | 10 | public function __construct(array $params, $entityDir) |
|
23 | { |
||
24 | 10 | parent::__construct(); |
|
25 | 10 | $this->bind()->annotatedWith(EntityManagerConfig::class)->toInstance([$params, $entityDir]); |
|
26 | 10 | } |
|
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | 10 | protected function configure() |
|
35 | } |
||
36 |