protected function updateKernel(OutputInterface $output, KernelInterface $kernel, Bundle $bundle)
 {
     $kernelManipulator = new KernelManipulator($kernel);
     $output->write(sprintf('> Enabling the bundle inside <info>%s</info>: ', $this->makePathRelative($kernelManipulator->getFilename())));
     try {
         $ret = $kernelManipulator->addBundle($bundle->getBundleClassName());
         if (!$ret) {
             $reflected = new \ReflectionObject($kernel);
             return array(sprintf('- Edit <comment>%s</comment>', $reflected->getFilename()), '  and add the following bundle in the <comment>AppKernel::registerBundles()</comment> method:', '', sprintf('    <comment>new %s(),</comment>', $bundle->getBundleClassName()), '');
         }
     } catch (\RuntimeException $e) {
         return array(sprintf('Bundle <comment>%s</comment> is already defined in <comment>AppKernel::registerBundles()</comment>.', $bundle->getBundleClassName()), '');
     }
 }