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