Ver Mensaje Individual
  #5 (permalink)  
Antiguo 12/06/2015, 08:57
JHONATHAN11
 
Fecha de Ingreso: mayo-2015
Mensajes: 50
Antigüedad: 9 años
Puntos: 0
Respuesta: Instalar KnpSnappyBundle en mi proyecto symfony2

Si lo Agregue aki esta el Appkernel

Código PHP:
use SymfonyComponentHttpKernelKernel;
use 
SymfonyComponentConfigLoaderLoaderInterface;

class 
AppKernel extends Kernel
{
    public function 
registerBundles()
    {
        
$bundles = array(
            new 
KnpBundleSnappyBundleKnpSnappyBundle(),
            new 
SymfonyBundleFrameworkBundleFrameworkBundle(),
            new 
SymfonyBundleSecurityBundleSecurityBundle(),
            new 
SymfonyBundleTwigBundleTwigBundle(),
            new 
SymfonyBundleMonologBundleMonologBundle(),
            new 
SymfonyBundleSwiftmailerBundleSwiftmailerBundle(),
            new 
SymfonyBundleAsseticBundleAsseticBundle(),
            new 
DoctrineBundleDoctrineBundleDoctrineBundle(),
            new 
SensioBundleFrameworkExtraBundleSensioFrameworkExtraBundle(),
            new 
JHONATHANSicondcBundleJHONATHANSicondcBundle(),
        );

        if (
in_array($this->getEnvironment(), array('dev''test'))) {
            
$bundles[] = new AcmeDemoBundleAcmeDemoBundle();
            
$bundles[] = new SymfonyBundleWebProfilerBundleWebProfilerBundle();
            
$bundles[] = new SensioBundleDistributionBundleSensioDistributionBundle();
            
$bundles[] = new SensioBundleGeneratorBundleSensioGeneratorBundle();
        }

        return 
$bundles;
    }

    public function 
registerContainerConfiguration(LoaderInterface $loader)
    {
        
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
    }