Procházet zdrojové kódy

[AsseticBundle] added env and debug mode to assetic:dump output

Kris Wallsmith před 14 roky
rodič
revize
26a31bfc9d

+ 4 - 0
src/Symfony/Bundle/AsseticBundle/Command/DumpCommand.php

@@ -51,6 +51,10 @@ class DumpCommand extends Command
 
     protected function execute(InputInterface $input, OutputInterface $output)
     {
+        $output->writeln(sprintf('Dumping all <comment>%s</comment> assets.', $input->getOption('env')));
+        $output->writeln(sprintf('Debug mode is <comment>%s</comment>.', $input->getOption('no-debug') ? 'off' : 'on'));
+        $output->writeln('');
+
         if (!$input->getOption('watch')) {
             foreach ($this->am->getNames() as $name) {
                 $this->dumpAsset($name, $output);