Skip to content
Snippets Groups Projects
Commit 5c4d4b5b authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Contournement provisoire du warning ZF 'ServiceLocatorAwareInterface is...

Contournement provisoire du warning ZF 'ServiceLocatorAwareInterface is deprecated and will be removed in version 3.0'
parent be492a67
No related branches found
No related tags found
No related merge requests found
Pipeline #3792 failed
...@@ -32,6 +32,9 @@ class IndexControllerFactory ...@@ -32,6 +32,9 @@ class IndexControllerFactory
$controller->setSchemaService($schemaService); $controller->setSchemaService($schemaService);
$controller->setDataService($dataService); $controller->setDataService($dataService);
// todo: ne plus injecter le service locator, svp!
$controller->setServiceLocator($manager->getServiceLocator());
return $controller; return $controller;
} }
} }
\ No newline at end of file
...@@ -3,13 +3,16 @@ ...@@ -3,13 +3,16 @@
namespace UnicaenOracle\Controller; namespace UnicaenOracle\Controller;
use Doctrine\DBAL\Connection; use Doctrine\DBAL\Connection;
use UnicaenApp\ServiceManager\ServiceLocatorAwareInterface;
use UnicaenOracle\Service\Traits\DataServiceAwareTrait; use UnicaenOracle\Service\Traits\DataServiceAwareTrait;
use UnicaenOracle\Service\Traits\SchemaServiceAwareTrait; use UnicaenOracle\Service\Traits\SchemaServiceAwareTrait;
use Zend\Log\LoggerAwareTrait; use Zend\Log\LoggerAwareTrait;
use Zend\Mvc\Controller\AbstractActionController; use Zend\Mvc\Controller\AbstractActionController;
use Zend\ServiceManager\ServiceLocatorAwareTrait;
class IndexController extends AbstractActionController class IndexController extends AbstractActionController implements ServiceLocatorAwareInterface
{ {
use ServiceLocatorAwareTrait;
use SchemaServiceAwareTrait; use SchemaServiceAwareTrait;
use DataServiceAwareTrait; use DataServiceAwareTrait;
use LoggerAwareTrait; use LoggerAwareTrait;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment