public function bootstrap()
    {
        if (!$this->booted) {
            $config = load($this->path.'/config/app.php');
            $this->name = $config['name'];

            date_default_timezone_set(isset($config['timezone']) ? $config['timezone'] : 'UTC');

            $this->add('config', new Config($config));
            $this->add('logger', new Logger($this->name));

            $this->registerExceptionHandler();
            $this->registerServicesProviders($config['services']);

            unset($config);
            $this->booted = true;
        }
    }
public function bootstrap()
    {
        if (!$this->booted) {
            $config = load($this->path.'/config/app.php');
            $this->name = $config['name'];

            date_default_timezone_set(isset($config['timezone']) ? $config['timezone'] : 'UTC');

            $this->add('config', new Config($config));
            $this->add('logger', new Logger($this->name));

            $this->registerExceptionHandler();
            $this->registerServicesProviders($config['services']);

            unset($config);
            $this->booted = true;
        }
    }
public function bootstrap ( ) { if ( ! $ this -> booted ) { $ config = load ( $ this -> path . '/config/app.php' ) ; $ this -> name = $ config [ 'name' ] ; date_default_timezone_set ( isset ( $ config [ 'timezone' ] ) ? $ config [ 'timezone' ] : 'UTC' ) ; $ this -> add ( 'config' , new Config ( $ config ) ) ; $ this -> add ( 'logger' , new Logger ( $ this -> name ) ) ; $ this -> registerExceptionHandler ( ) ; $ this -> registerServicesProviders ( $ config [ 'services' ] ) ; unset ( $ config ) ; $ this -> booted = true ; } }
Application bootstrap.
Application bootstrap .