* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ /** * RouterApacheDumperCommand. * * @package Symfony * @subpackage Framework_FoundationBundle * @author Fabien Potencier */ class RouterApacheDumperCommand extends Command { /** * @see Command */ protected function configure() { $this ->setName('router:dump-apache') ; } /** * @see Command */ protected function execute(InputInterface $input, OutputInterface $output) { $router = $this->container->get('router'); $dumper = new ApacheMatcherDumper($router->getRouteCollection()); $output->writeln($dumper->dump(), Output::OUTPUT_RAW); } }