Use a factory to Config and LocaleManager (see #298)
This commit is contained in:
parent
96a75cbf14
commit
280618bb6b
9 changed files with 145 additions and 87 deletions
|
@ -83,7 +83,7 @@ abstract class BaseController
|
|||
*/
|
||||
public function __construct(ContainerInterface $container)
|
||||
{
|
||||
$this->config = Config::getInstance();
|
||||
$this->config = $container->get('config');
|
||||
$this->container = $container;
|
||||
$session = SessionManager::getSession();
|
||||
$this->sessionSegment = $session->getSegment(self::class);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue