Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #262 from matwright/hotfix/missing-service-locator…
Browse files Browse the repository at this point in the history
…-setter

inject service locator into DoctrineAutodiscoveryModel
  • Loading branch information
TomHAnderson authored Jul 5, 2016
2 parents fd58314 + a08d836 commit dadf8b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Admin/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ public function getServiceConfig()
// @codeCoverageIgnoreEnd
}
$config = $services->get('Config');

return new Model\DoctrineAutodiscoveryModel($config);
$model= new Model\DoctrineAutodiscoveryModel($config);
$model->setServiceLocator($services);
return $model;
},
'ZF\Apigility\Doctrine\Admin\Model\DoctrineRestServiceModelFactory' => function ($services) {
if (!$services->has('ZF\Apigility\Admin\Model\ModulePathSpec')
Expand Down

0 comments on commit dadf8b3

Please sign in to comment.