Esempio n. 1
0
 public function preInit(&$config)
 {
     if (isset($config['basePath'])) {
         self::setBasePath($config['basePath']);
         unset($config['basePath']);
     } else {
         throw new \Exception('The "basePath" configuration for Application is required.');
     }
     foreach ($this->coreComponents() as $key => $components) {
         Jaf\base\Service::set($key, $components['class']);
     }
 }