protected parseRoute ( |
||
$collection |
/** * Parses a route and adds it to the RouteCollection. * * @param RouteCollection $collection A RouteCollection instance * @param string $name Route name * @param array $config Route definition * @param string $path Full path of the YAML file being processed */ protected function parseRoute(RouteCollection $collection, $name, array $config, $path) { if (!empty($this->defaults)) { $config['defaults'] = array_merge($config['defaults'], $this->defaults); } parent::parseRoute($collection, $name, $config, $path); }