예제 #1
0
 /**
  * Bootstrap the given application.
  *
  * @param  \Illuminate\Contracts\Foundation\Application  $app
  * @return void
  */
 public function bootstrap(Application $app)
 {
     if (!$app->configurationIsCached()) {
         try {
             (new Dotenv($app->environmentPath(), $app->environmentFile()))->load();
         } catch (InvalidArgumentException $e) {
             //
         }
     }
 }
예제 #2
0
 /**
  * @param \Illuminate\Contracts\Foundation\Application|\Notadd\Foundation\Application $application
  *
  * @return void
  */
 public function bootstrap(Application $application)
 {
     if (!$application->configurationIsCached()) {
         $this->checkForSpecificEnvironmentFile($application);
         try {
             (new Dotenv($application->environmentPath(), $application->environmentFile()))->load();
         } catch (InvalidPathException $e) {
         }
     }
 }
예제 #3
0
 /**
  * Bootstrap the given application.
  *
  * @param \Illuminate\Contracts\Foundation\Application|\Notadd\Foundation\Application $application
  *
  * @return void
  */
 public function bootstrap(Application $application)
 {
     if (!$application->configurationIsCached()) {
         $this->checkForSpecificEnvironmentFile($application);
         try {
             (new Dotenv($application->environmentPath(), $application->environmentFile()))->load();
         } catch (InvalidPathException $e) {
         }
     }
     $application->detectEnvironment(function () {
         return env('APP_ENV', 'production');
     });
 }
예제 #4
0
 /**
  * Bootstrap the given application.
  *
  * @param  \Illuminate\Contracts\Foundation\Application $app
  *
  * @return void
  */
 public function bootstrap(Application $app)
 {
     $app->detectEnvironment(function () {
         return env('APP_ENV', 'production');
     });
     if (!$app->configurationIsCached()) {
         try {
             (new Dotenv($app->environmentPath(), $app->environmentFile()))->load();
         } catch (InvalidPathException $e) {
             //
         }
     }
 }
 /**
  * Bootstrap the given application.
  *
  * @param  \Illuminate\Contracts\Foundation\Application  $app
  * @return void
  */
 public function bootstrap(Application $app)
 {
     if (!$app->configurationIsCached()) {
         $this->checkForSpecificEnvironmentFile($app);
         try {
             $path = $app->environmentPath();
             $file = $app->environmentFile();
             if (!file_exists($path . '/' . $file)) {
                 $path = $app->basePath();
             }
             (new Dotenv($path, $file))->load();
         } catch (InvalidPathException $e) {
             //
         }
     }
 }