Skip to content
Snippets Groups Projects
Commit cae4a1a4 authored by Demian Katz's avatar Demian Katz
Browse files

Adjust service locator loading in controllers.

parent 4127e9ff
Branches
Tags
No related merge requests found
......@@ -67,6 +67,13 @@ class AbstractBase extends AbstractActionController
*/
protected $accessDeniedBehavior = null;
/**
* Service manager
*
* @var ServiceLocatorInterface
*/
protected $serviceLocator;
/**
* Constructor
*
......@@ -74,7 +81,7 @@ class AbstractBase extends AbstractActionController
*/
public function __construct(ServiceLocatorInterface $sm)
{
$this->setServiceLocator($sm);
$this->serviceLocator = $sm;
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment