1 | <?php |
||
22 | class YamlFileLoader extends BaseYamlFileLoader |
||
23 | { |
||
24 | /** |
||
25 | * The loader defaults. |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $defaults = array(); |
||
30 | |||
31 | /** |
||
32 | * Constructor. |
||
33 | * |
||
34 | * @param array $defaults |
||
35 | */ |
||
36 | public function setDefaults($defaults) |
||
37 | { |
||
38 | $this->defaults = $defaults; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Parses a route and adds it to the RouteCollection. |
||
43 | * |
||
44 | * @param RouteCollection $collection A RouteCollection instance |
||
45 | * @param string $name Route name |
||
46 | * @param array $config Route definition |
||
47 | * @param string $path Full path of the YAML file being processed |
||
48 | */ |
||
49 | protected function parseRoute(RouteCollection $collection, $name, array $config, $path) |
||
57 | } |
||
58 |