Laravel\Lumen\Application::__construct PHP Метод

__construct() публичный Метод

Create a new Lumen application instance.
public __construct ( string | null $basePath = null ) : void
$basePath string | null
Результат void
    public function __construct($basePath = null)
    {
        date_default_timezone_set(env('APP_TIMEZONE', 'UTC'));
        $this->basePath = $basePath;
        $this->bootstrapContainer();
        $this->registerErrorHandling();
    }

Usage Example

Пример #1
0
 /**
  * Create a new application instance.
  *
  * @param  string|null  $basePath
  * @return void
  */
 public function __construct($basePath = null)
 {
     parent::__construct($basePath);
     $this->withFacades();
     $this->withEloquent();
     $this->registerSingletons();
     $this->loadEnvSupport($basePath);
 }
All Usage Examples Of Laravel\Lumen\Application::__construct