routerBuilder = $routerBuilder; parent::__construct(); } protected function configure() { $this ->setName('router:rebuild') ->setDescription($this->trans('commands.router.rebuild.description')); } protected function execute(InputInterface $input, OutputInterface $output) { $io = new DrupalStyle($input, $output); $io->newLine(); $io->comment( $this->trans('commands.router.rebuild.messages.rebuilding') ); $this->routerBuilder->rebuild(); $io->success( $this->trans('commands.router.rebuild.messages.completed') ); } }