PHP Class Cascade\Config\Loader\FileLoader\PhpArray

See also: FileLoaderAbstract
Inheritance: extends FileLoaderAbstract
Afficher le fichier Open project: theorchard/monolog-cascade Class Usage Examples

Méthodes publiques

Свойство Type Description
$validExtensions array Valid file extensions for this loader

Méthodes publiques

Méthode Description
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.

Method Details

load() public méthode

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
Résultat array Array containing data from the PHP file

supports() public méthode

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
Résultat boolean Whether or not the passed in resource is supported by this loader

Property Details

$validExtensions public_oe static_oe property

Valid file extensions for this loader
public static array $validExtensions
Résultat array