protected function checkAutoloader(OutputInterface $output, $namespace, $bundle, $dir) { $output->write('Checking that the bundle is autoloaded: '); if (!class_exists($namespace . '\\' . $bundle)) { return ['- Edit the <comment>composer.json</comment> file and register the bundle', ' namespace in the "autoload" section:', '']; } }