mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
40 lines
1.2 KiB
PHP
40 lines
1.2 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 \CL\Chill\MainBundle\CLChillMainBundle(),
|
|
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
|
|
new Symfony\Bundle\TwigBundle\TwigBundle(),
|
|
new \Symfony\Bundle\AsseticBundle\AsseticBundle(),
|
|
);
|
|
}
|
|
|
|
public function registerContainerConfiguration(LoaderInterface $loader)
|
|
{
|
|
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getCacheDir()
|
|
{
|
|
return sys_get_temp_dir().'/AcmeHelloBundle/cache';
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getLogDir()
|
|
{
|
|
return sys_get_temp_dir().'/AcmeHelloBundle/logs';
|
|
}
|
|
}
|