1 | <?php |
||
13 | class RoutingManipulator extends Manipulator |
||
14 | { |
||
15 | private $file; |
||
16 | |||
17 | /** |
||
18 | * Constructor. |
||
19 | * |
||
20 | * @param string $file The YAML routing file path |
||
21 | */ |
||
22 | 1 | public function __construct($file) |
|
26 | |||
27 | /** |
||
28 | * Adds a routing resource at the top of the existing ones. |
||
29 | * |
||
30 | * @param string $bundle |
||
31 | * @param string $prefix |
||
32 | * |
||
33 | * @return Boolean true if it worked, false otherwise |
||
34 | * |
||
35 | * @throws \RuntimeException If bundle is already imported |
||
36 | */ |
||
37 | 1 | public function addResource($bundle, $prefix = '/') |
|
68 | } |
||
69 |