The type AppKernel has been defined more than once; this definition is ignored, only the first definition in app/AppKernel.php (L18-35) 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...
19
{
20
/**
21
* {@inheritdoc}
22
*/
23
public function registerBundles()
24
{
25
return [
26
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
27
new Symfony\Bundle\TwigBundle\TwigBundle(),
28
new Sylius\Bundle\ThemeBundle\Tests\Functional\TestBundle\TestBundle(),
29
new Sylius\Bundle\ThemeBundle\SyliusThemeBundle(),
30
];
31
}
32
33
/**
34
* {@inheritdoc}
35
*/
36
public function registerContainerConfiguration(LoaderInterface $loader)
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.