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';
}
}