app/library/Services.php: change config path for Models Meta-data abit.
This commit is contained in:
parent
2097c3a657
commit
aa07255891
1 changed files with 4 additions and 3 deletions
|
|
@ -167,10 +167,11 @@ class Services extends DiDefault
|
|||
protected function _initSharedModelsMetadata()
|
||||
{
|
||||
$config = $this->get('config');
|
||||
// Use adapter and options from config if defined.
|
||||
if (isset($config->cache->metadata)) {
|
||||
|
||||
$mdConfig = $config->cache->metadata->toArray();
|
||||
// Use adapter and options from config if defined.
|
||||
if ($config->get('models-metadata')) {
|
||||
|
||||
$mdConfig = $config->get('models-metadata')->toArray();
|
||||
$options = $mdConfig['options'];
|
||||
$adapter = $mdConfig['adapter'];
|
||||
|
||||
|
|
|
|||
Reference in a new issue