Exemplo n.º 1
0
 private function getAdaptersWeb(Yaml $config)
 {
     if ($config->offsetExists('logger') && $config->get('logger')->offsetExists('web') && $config->get('logger')->get('web')->offsetExists('adapters')) {
         return $config->get('logger')->get('web')->get('adapters');
     }
     return null;
 }
Exemplo n.º 2
0
 /**
  * @param App $app
  * @param string $projectPath
  * @param string $environment
  */
 public function __construct(App $app, $projectPath, $environment = self::ENVIRONMENT_DEV)
 {
     $this->projectPath = $projectPath;
     $this->environment = $environment;
     $this->app = $app;
     $yml = new Yaml($this->projectPath . '/config/modules.yml');
     $this->modules = $yml->toArray();
     $this->check = new Check($this->projectPath, $this->getModulesPath(), $this->environment);
     $this->registerService = new RegisterService();
 }