Пример #1
0
 /**
  * Constructor
  */
 public function __construct(Config $config)
 {
     $this->errorHandler = new Exception\Handler();
     $this->errorHandler->register(true);
     parent::__construct();
     $this->config = $config;
     $this->modules = array();
     $this->environment = self::DEVELOPMENT;
     $config->grab('app')->inject($this);
 }
Пример #2
0
 /**
  * Get bound or registered service
  *
  * @param string $id Identifier
  *
  * @return mixed
  */
 public static function get($id)
 {
     return static::$app->get($id);
 }