| author | cavaliet |
| Wed, 11 Apr 2012 12:12:03 +0200 | |
| changeset 87 | f6d17ece173e |
| parent 71 | b01e36991488 |
| permissions | -rwxr-xr-x |
| 0 | 1 |
<?php |
|
71
b01e36991488
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
58
diff
changeset
|
2 |
/* |
|
b01e36991488
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
58
diff
changeset
|
3 |
* This file is part of the WikiTagBundle package. |
|
b01e36991488
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
58
diff
changeset
|
4 |
* |
|
b01e36991488
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
58
diff
changeset
|
5 |
* (c) IRI <http://www.iri.centrepompidou.fr/> |
|
b01e36991488
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
58
diff
changeset
|
6 |
* |
|
b01e36991488
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
58
diff
changeset
|
7 |
* For the full copyright and license information, please view the LICENSE |
|
b01e36991488
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
58
diff
changeset
|
8 |
* file that was distributed with this source code. |
|
b01e36991488
add headers for public repository release
ymh <ymh.work@gmail.com>
parents:
58
diff
changeset
|
9 |
*/ |
| 0 | 10 |
|
11 |
use Symfony\Component\HttpKernel\Kernel; |
|
12 |
use Symfony\Component\Config\Loader\LoaderInterface; |
|
13 |
||
14 |
class AppKernel extends Kernel |
|
15 |
{ |
|
16 |
public function registerBundles() |
|
17 |
{ |
|
18 |
$bundles = array( |
|
19 |
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), |
|
20 |
new Symfony\Bundle\SecurityBundle\SecurityBundle(), |
|
21 |
new Symfony\Bundle\TwigBundle\TwigBundle(), |
|
22 |
new Symfony\Bundle\MonologBundle\MonologBundle(), |
|
23 |
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(), |
|
24 |
new Symfony\Bundle\DoctrineBundle\DoctrineBundle(), |
|
25 |
new Symfony\Bundle\AsseticBundle\AsseticBundle(), |
|
26 |
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), |
|
27 |
new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(), |
|
| 2 | 28 |
new Company\BaseBundle\CompanyBaseBundle(), |
| 3 | 29 |
new FOS\UserBundle\FOSUserBundle(), |
30 |
new Company\UserBundle\CompanyUserBundle(), |
|
| 6 | 31 |
new IRI\Bundle\WikiTagBundle\WikiTagBundle(), |
|
39
03b14b0fe101
Documentation and add alternative wp url and label + migrations
ymh <ymh.work@gmail.com>
parents:
6
diff
changeset
|
32 |
new Symfony\Bundle\DoctrineMigrationsBundle\DoctrineMigrationsBundle(), |
| 58 | 33 |
new Symfony\Bundle\DoctrineFixturesBundle\DoctrineFixturesBundle(), |
| 0 | 34 |
); |
35 |
||
36 |
if (in_array($this->getEnvironment(), array('dev', 'test'))) { |
|
37 |
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); |
|
38 |
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); |
|
39 |
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); |
|
40 |
} |
|
41 |
||
42 |
return $bundles; |
|
43 |
} |
|
44 |
||
45 |
public function registerContainerConfiguration(LoaderInterface $loader) |
|
46 |
{ |
|
47 |
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml'); |
|
48 |
} |
|
49 |
} |