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
Branches
Tags 1.2.7
No related merge requests found
Pipeline #3792 failed
......@@ -32,6 +32,9 @@ class IndexControllerFactory
$controller->setSchemaService($schemaService);
$controller->setDataService($dataService);
// todo: ne plus injecter le service locator, svp!
$controller->setServiceLocator($manager->getServiceLocator());
return $controller;
}
}
\ No newline at end of file
......@@ -3,13 +3,16 @@
namespace UnicaenOracle\Controller;
use Doctrine\DBAL\Connection;
use UnicaenApp\ServiceManager\ServiceLocatorAwareInterface;
use UnicaenOracle\Service\Traits\DataServiceAwareTrait;
use UnicaenOracle\Service\Traits\SchemaServiceAwareTrait;
use Zend\Log\LoggerAwareTrait;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\ServiceManager\ServiceLocatorAwareTrait;
class IndexController extends AbstractActionController
class IndexController extends AbstractActionController implements ServiceLocatorAwareInterface
{
use ServiceLocatorAwareTrait;
use SchemaServiceAwareTrait;
use DataServiceAwareTrait;
use LoggerAwareTrait;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment