setDescription('Dump XSendFile mapping for Apache web server'); } /** * {@inheritdoc} */ protected function doExecute(InputInterface $input, OutputInterface $output) { $mapper = $this->container['phraseanet.xsendfile-mapping']; $output->writeln('Apache XSendfile configuration'); $output->writeln(''); $output->writeln(''); $output->writeln(' '); $output->writeln(' XSendFile on'); foreach ($this->container['phraseanet.xsendfile-mapping']->getMapping() as $entry) { $output->writeln(' XSendFilePath ' . $mapper->sanitizePath($entry['directory'])); } $output->writeln(' '); $output->writeln(''); $output->writeln(''); return 1; } }