PHP Class Symfony\Component\Routing\Loader\YamlFileLoader

Inheritance: extends Symfony\Component\Config\Loader\FileLoader
显示文件 Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
load ( string $file ) : RouteCollection Loads a Yaml file.
supports ( mixed $resource ) : boolean Returns true if this class supports the given resource.

Protected Methods

Method Description
loadFile ( $file )
parseRoute ( RouteCollection $collection, $name, $config, $file )

Method Details

load() public method

Loads a Yaml file.
public load ( string $file ) : RouteCollection
$file string A Yaml file path
return Symfony\Component\Routing\RouteCollection A RouteCollection instance

loadFile() protected method

protected loadFile ( $file )

parseRoute() protected method

protected parseRoute ( RouteCollection $collection, $name, $config, $file )
$collection Symfony\Component\Routing\RouteCollection

supports() public method

Returns true if this class supports the given resource.
public supports ( mixed $resource ) : boolean
$resource mixed A resource
return boolean true if this class supports the given resource, false otherwise