setName('js') ->setDescription('Minify Javascript files') ; } protected function execute(InputInterface $input, OutputInterface $output) { $appBundle = concat_files($this->appFiles); $vendorBundle = concat_files($this->vendorFiles); $minifier = new Minify\JS($appBundle); file_put_contents('assets/js/app.min.js', $minifier->minify()); file_put_contents('assets/js/vendor.min.js', $vendorBundle); } }