/
AppKernel.php
59 lines (52 loc) · 2.46 KB
/
AppKernel.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\DoctrineMongoDBBundle\DoctrineMongoDBBundle(),
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Avalanche\Bundle\ImagineBundle\AvalancheImagineBundle(),
new Bundle\ApcBundle\ApcBundle(),
new FOQ\ElasticaBundle\FOQElasticaBundle(),
new FOQ\TyperBundle\FOQTyperBundle(),
new FOS\CommentBundle\FOSCommentBundle(),
new FOS\UserBundle\FOSUserBundle(),
new Knp\Bundle\GaufretteBundle\KnpGaufretteBundle(),
new Ornicar\AkismetBundle\OrnicarAkismetBundle(),
new Knp\Bundle\MarkdownBundle\KnpMarkdownBundle(),
new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
new Ltc\UserBundle\LtcUserBundle(),
new Ltc\CommentBundle\LtcCommentBundle(),
new Ltc\CoreBundle\LtcCoreBundle(),
new Ltc\DocBundle\LtcDocBundle(),
new Ltc\BlogBundle\LtcBlogBundle(),
new Ltc\ArticleBundle\LtcArticleBundle(),
new Ltc\FileBundle\LtcFileBundle(),
new Ltc\ImageBundle\LtcImageBundle(),
new Ltc\TagBundle\LtcTagBundle(),
new Ltc\StoryBundle\LtcStoryBundle(),
new Ltc\CompatBundle\LtcCompatBundle(),
new Ltc\ConfigBundle\LtcConfigBundle(),
new Ltc\ImportBundle\LtcImportBundle(),
new Ltc\AdminBundle\LtcAdminBundle(),
);
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
$bundles[] = new Symfony\Bundle\DoctrineFixturesBundle\DoctrineFixturesBundle();
}
return $bundles;
}
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
}
}