PHP Class Symfony\Component\Routing\Loader\FileLoader

Author: Fabien Potencier ([email protected])
Inheritance: extends Loader
ファイルを表示 Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Property Type Description
$currentDir
$paths

Public Methods

Method Description
__construct ( string | array $paths = [] ) Constructor.
import ( mixed $resource ) : RouteCollection Adds routes from a resource.

Protected Methods

Method Description
findFile ( $file )
getAbsolutePath ( $file, $currentPath = null )
isAbsolutePath ( $file )

Method Details

__construct() public method

Constructor.
public __construct ( string | array $paths = [] )
$paths string | array A path or an array of paths where to look for resources

findFile() protected method

protected findFile ( $file )

getAbsolutePath() protected method

protected getAbsolutePath ( $file, $currentPath = null )

import() public method

Adds routes from a resource.
public import ( mixed $resource ) : RouteCollection
$resource mixed A Resource
return Symfony\Component\Routing\RouteCollection A RouteCollection instance

isAbsolutePath() protected static method

protected static isAbsolutePath ( $file )

Property Details

$currentDir protected_oe property

protected $currentDir

$paths protected_oe property

protected $paths