本文整理汇总了PHP中Illuminate\Config\Repository::all方法的典型用法代码示例。如果您正苦于以下问题:PHP Repository::all方法的具体用法?PHP Repository::all怎么用?PHP Repository::all使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Illuminate\Config\Repository
的用法示例。
在下文中一共展示了Repository::all方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getPackageNameByComposerName
/**
* 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: all
/**
* Get all of the configuration items for the application.
*
* @return array
* @static
*/
public static function all()
{
return \Illuminate\Config\Repository::all();
}
示例3: save
/**
* 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: all
/**
* Get all of the configuration items for the application.
*
* @return array
*/
public function all() : array
{
return $this->delegate->all();
}