summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole3/backend/app/AppKernel.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/WebConsole3/backend/app/AppKernel.php')
-rw-r--r--admin/WebConsole3/backend/app/AppKernel.php68
1 files changed, 0 insertions, 68 deletions
diff --git a/admin/WebConsole3/backend/app/AppKernel.php b/admin/WebConsole3/backend/app/AppKernel.php
deleted file mode 100644
index 480347f6..00000000
--- a/admin/WebConsole3/backend/app/AppKernel.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?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\SecurityBundle\SecurityBundle(),
- new Symfony\Bundle\TwigBundle\TwigBundle(),
- new Symfony\Bundle\MonologBundle\MonologBundle(),
- new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
- new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
- new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
-
- new Opengnsys\CoreBundle\OpengnsysCoreBundle('FOSUserBundle'),
- new Opengnsys\MigrationBundle\OpengnsysMigrationBundle(),
- new Opengnsys\ServerBundle\OpengnsysServerBundle(),
- new Opengnsys\RepositoryBundle\OpengnsysRepositoryBundle(),
-
- # FOS
- new FOS\RestBundle\FOSRestBundle(),
- new FOS\UserBundle\FOSUserBundle(),
- new FOS\OAuthServerBundle\FOSOAuthServerBundle(),
-
- # JMS
- new JMS\SerializerBundle\JMSSerializerBundle($this),
-
- # Nelmio
- new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
- new Nelmio\CorsBundle\NelmioCorsBundle(),
-
- );
-
- if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
- $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
- $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
- $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
- $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
- $bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle();
- }
-
- return $bundles;
- }
-
- public function getRootDir()
- {
- return __DIR__;
- }
-
- public function getCacheDir()
- {
- return dirname(__DIR__).'/var/cache/'.$this->getEnvironment();
- }
-
- public function getLogDir()
- {
- return dirname(__DIR__).'/var/logs';
- }
-
- public function registerContainerConfiguration(LoaderInterface $loader)
- {
- $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
- }
-}