PHP Class Symfony\Component\DependencyInjection\Loader\YamlFileLoader

The YAML format does not support anonymous services (cf. the XML loader).
Author: Fabien Potencier ([email protected])
Inheritance: extends Symfony\Component\DependencyInjection\Loader\FileLoader
Show file Open project: symfony/symfony Class Usage Examples

Public Methods

Method Description
load ( $resource, $type = null )
supports ( $resource, $type = null )

Protected Methods

Method Description
loadFile ( string $file ) : array Loads a YAML file.

Private Methods

Method Description
checkDefinition ( string $id, array $definition, string $file ) Checks the keywords used to define a service.
loadFromExtensions ( array $content ) Loads from Extensions.
parseCallable ( string | array $callable, string $parameter, string $id, string $file ) : string | array Parses a callable.
parseDefinition ( string $id, array $service, string $file ) Parses a definition.
parseDefinitions ( array $content, string $file ) Parses definitions.
parseImports ( array $content, string $file ) Parses all imports.
resolveServices ( string | array $value ) : array | string | Reference Resolves services.
validate ( mixed $content, string $file ) : array Validates a YAML file.

Method Details

load() public method

public load ( $resource, $type = null )

loadFile() protected method

Loads a YAML file.
protected loadFile ( string $file ) : array
$file string
return array The file content

supports() public method

public supports ( $resource, $type = null )