| @@ 94-111 (lines=18) @@ | ||
| 91 | * @param HippocampusInterface $memory |
|
| 92 | * @param FactoryInterface $factory |
|
| 93 | */ |
|
| 94 | public function __construct( |
|
| 95 | ORMConfig $config, |
|
| 96 | DatabaseManager $databases, |
|
| 97 | EntityCache $cache, |
|
| 98 | HippocampusInterface $memory, |
|
| 99 | FactoryInterface $factory |
|
| 100 | ) { |
|
| 101 | $this->config = $config; |
|
| 102 | $this->databases = $databases; |
|
| 103 | ||
| 104 | $this->cache = $cache; |
|
| 105 | ||
| 106 | //ORM schema (cached) |
|
| 107 | $this->memory = $memory; |
|
| 108 | $this->schema = (array)$memory->loadData(static::MEMORY); |
|
| 109 | ||
| 110 | $this->factory = $factory; |
|
| 111 | } |
|
| 112 | ||
| 113 | /** |
|
| 114 | * @param EntityCache $cache |
|
| @@ 83-100 (lines=18) @@ | ||
| 80 | * @param HippocampusInterface $memory |
|
| 81 | * @param FactoryInterface $factory |
|
| 82 | */ |
|
| 83 | public function __construct( |
|
| 84 | ORMConfig $config, |
|
| 85 | DatabaseManager $dbal, |
|
| 86 | EntityCache $cache, |
|
| 87 | HippocampusInterface $memory, |
|
| 88 | FactoryInterface $factory |
|
| 89 | ) { |
|
| 90 | $this->config = $config; |
|
| 91 | $this->cache = $cache; |
|
| 92 | ||
| 93 | $this->dbal = $dbal; |
|
| 94 | ||
| 95 | //ORM schema (cached) |
|
| 96 | $this->memory = $memory; |
|
| 97 | $this->schema = (array)$memory->loadData(static::MEMORY); |
|
| 98 | ||
| 99 | $this->factory = $factory; |
|
| 100 | } |
|
| 101 | ||
| 102 | /** |
|
| 103 | * @param EntityCache $cache |
|