PHP 클래스 PPI\Framework\Config\Loader\YamlFileLoader

저자: Vítor Brandão ([email protected])
상속: extends Symfony\Component\Config\Loader\FileLoader
파일 보기 프로젝트 열기: ppi/framework

공개 메소드들

메소드 설명
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