Sensio\Bundle\GeneratorBundle\Command\GenerateBundleCommand::checkAutoloader PHP Method

checkAutoloader() protected method

protected checkAutoloader ( Symfony\Component\Console\Output\OutputInterface $output, $namespace, $bundle, $dir )
$output Symfony\Component\Console\Output\OutputInterface
    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>app/autoloader.php</comment> file and register the bundle',
                '  namespace at the top of the <comment>registerNamespaces()</comment> call:',
                '',
                sprintf('<comment>    \'%s\' => \'%s\',</comment>', $namespace, realpath($dir)),
                '',
            );
        }
    }