Convert SessionManager to a factory class
This commit is contained in:
parent
5b0ee7651b
commit
de8c5e5dc7
10 changed files with 64 additions and 52 deletions
|
@ -10,7 +10,7 @@ use Alltube\Config;
|
|||
use Alltube\Library\Downloader;
|
||||
use Alltube\Library\Video;
|
||||
use Alltube\LocaleManager;
|
||||
use Alltube\SessionManager;
|
||||
use Alltube\SessionFactory;
|
||||
use Aura\Session\Segment;
|
||||
use Consolidation\Log\Logger;
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
@ -85,7 +85,7 @@ abstract class BaseController
|
|||
{
|
||||
$this->config = $container->get('config');
|
||||
$this->container = $container;
|
||||
$session = SessionManager::getSession();
|
||||
$session = $container->get('session');
|
||||
$this->sessionSegment = $session->getSegment(self::class);
|
||||
$this->localeManager = $this->container->get('locale');
|
||||
$this->downloader = $this->config->getDownloader();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue