Newscoop\Services\Plugins\ManagerService::__construct PHP Метод

__construct() публичный Метод

public __construct ( EntityManager $em, Newscoop\EventDispatcher\EventDispatcher $dispatcher, $pluginsService, Symfony\Bridge\Monolog\Logger $logger, array $config )
$em Doctrine\ORM\EntityManager
$dispatcher Newscoop\EventDispatcher\EventDispatcher
$logger Symfony\Bridge\Monolog\Logger
$config array
    public function __construct(EntityManager $em, $dispatcher, $pluginsService, Logger $logger, array $config)
    {
        $this->em = $em;
        $this->dispatcher = $dispatcher;
        $this->pluginsService = $pluginsService;
        $this->logger = $logger;
        $this->newsoopDir = __DIR__ . '/../../../../';
        $this->pluginsDir = $this->newsoopDir . 'plugins';
        $this->handleConfig($config);
        $this->dev = '';
        if (APPLICATION_ENV === 'production') {
            $this->dev = '--no-dev';
        }
    }