PHP Class Sensio\Bundle\GeneratorBundle\Manipulator\RoutingManipulator

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

Public Methods

Method Description
__construct ( string $file ) Constructor.
addResource ( string $bundle, string $format, string $prefix = '/', string $path = 'routing' ) : boolean Adds a routing resource at the top of the existing ones.

Method Details

__construct() public method

Constructor.
public __construct ( string $file )
$file string The YAML routing file path

addResource() public method

Adds a routing resource at the top of the existing ones.
public addResource ( string $bundle, string $format, string $prefix = '/', string $path = 'routing' ) : boolean
$bundle string
$format string
$prefix string
$path string
return boolean true if it worked, false otherwise