/** * 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); }
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__ . '/../')); }
/** * Application constructor. */ public function __construct($basePath = null) { parent::__construct($basePath); }