app/AppKernel.php
public function registerBundles()
    {   
        $bundles = array(
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
        );
        
        // This small hack allows to register custom 
        // bundles required for executing tests. Make sure
        // that registerBundles function returns an array.
        if (function_exists('registerBundles')) {
            $bundles = array_merge($bundles, registerBundles());
        }

        return $bundles;
    }
public function registerBundles()
    {   
        $bundles = array(
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
        );
        
        // This small hack allows to register custom 
        // bundles required for executing tests. Make sure
        // that registerBundles function returns an array.
        if (function_exists('registerBundles')) {
            $bundles = array_merge($bundles, registerBundles());
        }

        return $bundles;
    }
{@inheritdoc}