本文整理匯總了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();
}