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
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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
+4 −1
Original line number Diff line number Diff line
@@ -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;