PHP Класс PPI\Framework\Config\Loader\YamlFileLoader

Автор: Vítor Brandão ([email protected])
Наследование: extends Symfony\Component\Config\Loader\FileLoader
Показать файл Открыть проект

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

Метод Описание
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.

Защищенные методы

Метод Описание
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.

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

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

Loads a Yaml file.
public load ( mixed $file, string $type = null ) : array
$file mixed The resource
$type string The resource type
Результат array Array with configuration

loadFile() защищенный Метод

Loads a YAML file.
protected loadFile ( string $file ) : array
$file string
Результат array The file content

parseImports() защищенный Метод

Parses all imports. We support this to make Symfony users happy.
protected parseImports ( array $content, string $file ) : array
$content array
$file string
Результат array

parseIncludes() защищенный Метод

Process the array for @include. We support this to make Zend users happy.
См. также: 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
Результат array

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

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
Результат boolean true if this class supports the given resource, false otherwise