mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
56 lines
1.6 KiB
PHP
56 lines
1.6 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Chill is a software for social workers
|
|
*
|
|
* For the full copyright and license information, please view
|
|
* the LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Symfony\Component\Config\Loader\LoaderInterface;
|
|
use Symfony\Component\HttpKernel\Kernel;
|
|
|
|
class AppKernel extends Kernel
|
|
{
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getCacheDir()
|
|
{
|
|
return sys_get_temp_dir() . '/ChillEventBundle/cache';
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getLogDir()
|
|
{
|
|
return sys_get_temp_dir() . '/ChillEventBundle/logs';
|
|
}
|
|
|
|
public function registerBundles()
|
|
{
|
|
return [
|
|
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
|
|
new Chill\MainBundle\ChillMainBundle(),
|
|
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
|
|
new Symfony\Bundle\TwigBundle\TwigBundle(),
|
|
new \Symfony\Bundle\AsseticBundle\AsseticBundle(),
|
|
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
|
|
new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
|
|
new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
|
|
new Symfony\Bundle\MonologBundle\MonologBundle(),
|
|
new Chill\PersonBundle\ChillPersonBundle(),
|
|
new Chill\CustomFieldsBundle\ChillCustomFieldsBundle(),
|
|
new \Chill\EventBundle\ChillEventBundle(),
|
|
];
|
|
}
|
|
|
|
public function registerContainerConfiguration(LoaderInterface $loader)
|
|
{
|
|
$loader->load(__DIR__ . '/config/config_' . $this->getEnvironment() . '.yml');
|
|
}
|
|
}
|