PHP Класс Cascade\Config\Loader\FileLoader\PhpArray

См. также: FileLoaderAbstract
Наследование: extends FileLoaderAbstract
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$validExtensions array Valid file extensions for this loader

Открытые методы

Метод Описание
load ( string $resource, string | null $type = null ) : array Load a PHP file
supports ( string $resource, string $type = null ) : boolean Return whether or not the resource passed in is supported by this loader !\ This does not verify that the php file returns a valid array. An exception will be thrown when it is loaded if that is not the case.

Описание методов

load() публичный метод

Load a PHP file
public load ( string $resource, string | null $type = null ) : array
$resource string File path to a PHP file that returns an array
$type string | null This is not used
Результат array Array containing data from the PHP file

supports() публичный метод

Return whether or not the resource passed in is supported by this loader !\ This does not verify that the php file returns a valid array. An exception will be thrown when it is loaded if that is not the case.
public supports ( string $resource, string $type = null ) : boolean
$resource string Filepath
$type string Not used
Результат boolean Whether or not the passed in resource is supported by this loader

Описание свойств

$validExtensions публичное статическое свойство

Valid file extensions for this loader
public static array $validExtensions
Результат array