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

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

        $output->writeln('<info>OK</info>');
    }
@param OutputInterface $output
@param $namespace
@param $bundle
@param $dir
@return array

@codeCoverageIgnore