__construct() public method

Create a new Lumen application instance.
public __construct ( string | null $basePath = null ) : void
$basePath string | null
return void
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);
 }
Example #2
0
 public function __construct($basePath = null)
 {
     parent::__construct($basePath);
     // Use bucket-based storage when not running in dev.
     // Needed for template caching.
     if (array_key_exists('APPLICATION_ID', $_SERVER) && substr($_SERVER['APPLICATION_ID'], 0, 3) !== 'dev') {
         $this->useBucketForStorage();
         $this->setAppEngineEnvironment('appengine');
     } else {
         $this->setAppEngineEnvironment('dev');
     }
 }
 /**
  * Create a new GAE supported application instance.
  *
  * @param string $basePath
  */
 public function __construct($basePath = null)
 {
     $this->gaeBucketPath = null;
     // Load the 'realpath()' function replacement
     // for GAE storage buckets.
     require_once __DIR__ . '/gae_realpath.php';
     $this->detectGae();
     if ($this->isRunningOnGae()) {
         $this->initializeGaeBucket();
         $this->replaceDefaultSymfonyLineDumpers();
         $this->initializeCacheFs();
     }
     parent::__construct($basePath);
 }
 /**
  * @inheritdoc
  */
 public function __construct($basePath = null)
 {
     parent::__construct(realpath(__DIR__ . '/../'));
 }
Example #5
0
 /**
  * Application constructor.
  */
 public function __construct($basePath = null)
 {
     parent::__construct($basePath);
 }