Sensio\Bundle\GeneratorBundle\Manipulator\RoutingManipulator::addResource
Adds a routing resource at the top of the existing ones.
Signature
public function addResource(string
$bundle,
[string
$format = '/',
[string
$prefix = '/',
[string
$path = 'routing']]] )
Parameters
$bundle
— string$format
— string$prefix
— string$path
— string
Returns
- Boolean
- true if it worked, false otherwise
Errors/Exceptions
-
RuntimeException
- If bundle is already imported