PHP Class PPI\Framework\Config\Loader\YamlFileLoader

Author: Vítor Brandão ([email protected])
Inheritance: extends Symfony\Component\Config\Loader\FileLoader
Afficher le fichier Open project: ppi/framework

Méthodes publiques

Méthode Description
load ( mixed $file, string $type = null ) : array Loads a Yaml file.
supports ( mixed $resource, string $type = null ) : boolean Returns true if this class supports the given resource.

Méthodes protégées

Méthode Description
loadFile ( string $file ) : array Loads a YAML file.
parseImports ( array $content, string $file ) : array Parses all imports. We support this to make Symfony users happy.
parseIncludes ( array $content, string $file ) : array Process the array for @include. We support this to make Zend users happy.

Method Details

load() public méthode

Loads a Yaml file.
public load ( mixed $file, string $type = null ) : array
$file mixed The resource
$type string The resource type
Résultat array Array with configuration

loadFile() protected méthode

Loads a YAML file.
protected loadFile ( string $file ) : array
$file string
Résultat array The file content

parseImports() protected méthode

Parses all imports. We support this to make Symfony users happy.
protected parseImports ( array $content, string $file ) : array
$content array
$file string
Résultat array

parseIncludes() protected méthode

Process the array for @include. We support this to make Zend users happy.
See also: http://framework.zend.com/manual/2.0/en/modules/zend.config.reader.html#zend-config-reader-yaml
protected parseIncludes ( array $content, string $file ) : array
$content array
$file string
Résultat array

supports() public méthode

Returns true if this class supports the given resource.
public supports ( mixed $resource, string $type = null ) : boolean
$resource mixed A resource
$type string The resource type
Résultat boolean true if this class supports the given resource, false otherwise