PHP Class Sulu\Bundle\GeneratorBundle\Manipulator\RoutingManipulator

Inheritance: extends Manipulator
Exibir arquivo Open project: sulu/sulu 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