当前位置: 首页>>代码示例>>PHP>>正文


PHP Application::configurationIsCached方法代码示例

本文整理汇总了PHP中Illuminate\Contracts\Foundation\Application::configurationIsCached方法的典型用法代码示例。如果您正苦于以下问题:PHP Application::configurationIsCached方法的具体用法?PHP Application::configurationIsCached怎么用?PHP Application::configurationIsCached使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Illuminate\Contracts\Foundation\Application的用法示例。


在下文中一共展示了Application::configurationIsCached方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: bootstrap

 /**
  * 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) {
             //
         }
     }
 }
开发者ID:widnyana,项目名称:framework,代码行数:16,代码来源:DetectEnvironment.php

示例2: bootstrap

 /**
  * @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) {
         }
     }
 }
开发者ID:notadd,项目名称:framework,代码行数:15,代码来源:DetectEnvironment.php

示例3: bootstrap

 /**
  * 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');
     });
 }
开发者ID:notadd,项目名称:framework,代码行数:20,代码来源:DetectEnvironment.php

示例4: bootstrap

 /**
  * 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) {
             //
         }
     }
 }
开发者ID:laradic-old,项目名称:illuminate,代码行数:20,代码来源:DetectEnvironment.php

示例5: bootstrap

 /**
  * 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) {
             //
         }
     }
 }
开发者ID:thirdgerb,项目名称:commune-framework,代码行数:22,代码来源:DetectEnvironment.php


注:本文中的Illuminate\Contracts\Foundation\Application::configurationIsCached方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。