/** * * * @param object \InputInterface * @param object \OutputInterface * @return void */ private function processKernel(InputInterface $input, OutputInterface $output) { $kernelFilepath = $this->config->get('kernel_file'); $outputFile = $this->config->get('build_dir') . '/Kernel.js'; $dependencies = Dependency::getKernelDependencies($this->config, $kernelFilepath); Dependency::merge($this->config, $dependencies, $outputFile, true); // true toggle kernel mode ("_build" dir is not taken in account in rewrite) Module::rewriteKernel($this->config, $kernelFilepath, $outputFile); }