Laravel\Lumen\Application::__construct PHP Method

__construct() public method

Create a new Lumen application instance.
public __construct ( string | null $basePath = null ) : void
$basePath string | null
return 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