public function configureRoutes() { $this->routes = new RouteCollection(); $this->routes->add('index', new Route('/', ['_action' => 'index'])); $this->routes->add('job', new Route('/{name}', ['_action' => 'job'])); }