コード例 #1
0
ファイル: LlumCommand.php プロジェクト: acacha/llum
 /**
  * Get package name by composer package name.
  *
  * @param $composerPackageName
  *
  * @return string
  */
 private function getPackageNameByComposerName($composerPackageName)
 {
     foreach ($this->config->all() as $key => $configItem) {
         if ($configItem['name'] == $composerPackageName) {
             return $key;
         }
     }
 }
コード例 #2
0
ファイル: _ide_helper.php プロジェクト: satriashp/tour
 /**
  * Get all of the configuration items for the application.
  *
  * @return array 
  * @static 
  */
 public static function all()
 {
     return \Illuminate\Config\Repository::all();
 }
コード例 #3
0
ファイル: Webdev.php プロジェクト: afflicto/webdev
 /**
  * Saves the current configuration to WEBDEV_CONFIG_FILE, like this: "<?php return array(...);".
  */
 public function save()
 {
     $h = fopen(WEBDEV_CONFIG_FILE, 'w');
     fwrite($h, "<?php\n return " . var_export($this->config->all(), true) . ';');
     fclose($h);
 }
コード例 #4
0
ファイル: LaravelConfig.php プロジェクト: Mosaic/Mosaic
 /**
  * Get all of the configuration items for the application.
  *
  * @return array
  */
 public function all() : array
 {
     return $this->delegate->all();
 }