mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-11-04 11:18:25 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			48 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
use Symfony\Component\HttpKernel\Kernel;
 | 
						|
use Symfony\Component\Config\Loader\LoaderInterface;
 | 
						|
 | 
						|
class AppKernel extends Kernel
 | 
						|
{
 | 
						|
    public function registerBundles()
 | 
						|
    {
 | 
						|
        return array(
 | 
						|
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
 | 
						|
            new Chill\CustomFieldsBundle\ChillCustomFieldsBundle(),
 | 
						|
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
 | 
						|
            new Symfony\Bundle\TwigBundle\TwigBundle(),
 | 
						|
            new \Symfony\Bundle\AsseticBundle\AsseticBundle(),
 | 
						|
            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
 | 
						|
            new Chill\PersonBundle\ChillPersonBundle(),
 | 
						|
            new Chill\MainBundle\ChillMainBundle(),
 | 
						|
            new Chill\ActivityBundle\ChillActivityBundle(),
 | 
						|
            new \Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
 | 
						|
            new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
 | 
						|
            new Symfony\Bundle\MonologBundle\MonologBundle(),
 | 
						|
            #add here all the required bundle (some bundle are not required)
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    public function registerContainerConfiguration(LoaderInterface $loader)
 | 
						|
    {
 | 
						|
        $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * @return string
 | 
						|
     */
 | 
						|
    public function getCacheDir()
 | 
						|
    {
 | 
						|
        return sys_get_temp_dir().'/ActivityBundle/cache';
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * @return string
 | 
						|
     */
 | 
						|
    public function getLogDir()
 | 
						|
    {
 | 
						|
        return sys_get_temp_dir().'/ActivityBundle/logs';
 | 
						|
    }
 | 
						|
}
 |