Chris@0: routes)) { Chris@0: $this->routes = $routes; Chris@0: } Chris@0: else { Chris@0: $this->routes->addCollection($routes); Chris@0: } Chris@0: } Chris@0: Chris@0: /** Chris@0: * Dumps a set of routes to the router table in the database. Chris@0: * Chris@0: * Available options: Chris@0: * - provider: The route grouping that is being dumped. All existing Chris@0: * routes with this provider will be deleted on dump. Chris@0: * - base_class: The base class name. Chris@0: * Chris@0: * @param array $options Chris@0: * An array of options. Chris@0: */ Chris@0: public function dump(array $options = []) { Chris@0: // The dumper is reused for multiple providers, so reset the queued routes. Chris@0: $this->routes = NULL; Chris@0: } Chris@0: Chris@0: /** Chris@0: * Gets the routes to match. Chris@0: * Chris@0: * @return \Symfony\Component\Routing\RouteCollection Chris@0: * A RouteCollection instance representing all routes currently in the Chris@0: * dumper. Chris@0: */ Chris@0: public function getRoutes() { Chris@0: return $this->routes; Chris@0: } Chris@0: Chris@0: }