Completed
Push — master ( d81c19...f57266 )
by Kamil
20s
created

Bundle/AddressingBundle/test/app/AppKernel.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
/*
4
 * This file is part of the Sylius package.
5
 *
6
 * (c) Paweł Jędrzejewski
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
/*
14
 * This file is part of the Sylius package.
15
 *
16
 * (c) Paweł Jędrzejewski
17
 *
18
 * For the full copyright and license information, please view the LICENSE
19
 * file that was distributed with this source code.
20
 */
21
22
use PSS\SymfonyMockerContainer\DependencyInjection\MockerContainer;
23
use Symfony\Component\Config\Loader\LoaderInterface;
24
use Symfony\Component\HttpKernel\Kernel;
25
26
class AppKernel extends Kernel
0 ignored issues
show
Comprehensibility Best Practice introduced by
The type AppKernel has been defined more than once; this definition is ignored, only the first definition in app/AppKernel.php (L16-38) is considered.

This check looks for classes that have been defined more than once.

If you can, we would recommend to use standard object-oriented programming techniques. For example, to avoid multiple types, it might make sense to create a common interface, and then multiple, different implementations for that interface.

This also has the side-effect of providing you with better IDE auto-completion, static analysis and also better OPCode caching from PHP.

Loading history...
27
{
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function registerBundles()
32
    {
33
        return [
34
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
35
            new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle(),
36
            new FOS\RestBundle\FOSRestBundle(),
37
            new JMS\SerializerBundle\JMSSerializerBundle($this),
38
            new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
39
            new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
40
            new Sylius\Bundle\AddressingBundle\SyliusAddressingBundle(),
41
            new Sylius\Bundle\ResourceBundle\SyliusResourceBundle(),
42
            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
43
            new Symfony\Bundle\TwigBundle\TwigBundle(),
44
        ];
45
    }
46
47
    /**
48
     * {@inheritdoc}
49
     */
50
    public function registerContainerConfiguration(LoaderInterface $loader)
51
    {
52
        $loader->load(__DIR__ . '/config/config.yml');
53
    }
54
55
    /**
56
     * {@inheritdoc}
57
     */
58
    protected function getContainerBaseClass()
59
    {
60
        if ('test' === $this->environment) {
61
            return MockerContainer::class;
62
        }
63
64
        return parent::getContainerBaseClass();
65
    }
66
}
67