1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace App; |
4
|
|
|
|
5
|
|
|
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; |
|
|
|
|
6
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; |
|
|
|
|
7
|
|
|
use Symfony\Component\HttpKernel\Kernel as BaseKernel; |
|
|
|
|
8
|
|
|
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator; |
|
|
|
|
9
|
|
|
|
10
|
|
|
use function dirname; |
11
|
|
|
|
12
|
|
|
class Kernel extends BaseKernel |
13
|
|
|
{ |
14
|
|
|
use MicroKernelTrait; |
15
|
|
|
|
16
|
|
|
protected function configureContainer(ContainerConfigurator $container): void |
17
|
|
|
{ |
18
|
|
|
$container->import('../config/{packages}/*.yaml'); |
19
|
|
|
$container->import('../config/{packages}/' . $this->environment . '/*.yaml'); |
20
|
|
|
|
21
|
|
|
if (is_file(dirname(__DIR__) . '/config/services.yaml')) { |
22
|
|
|
$container->import('../config/services.yaml'); |
23
|
|
|
$container->import('../config/{services}_' . $this->environment . '.yaml'); |
24
|
|
|
} |
25
|
|
|
|
26
|
|
|
if (is_file($path = dirname(__DIR__) . '/config/services.php')) { |
27
|
|
|
(require $path)($container->withPath($path), $this); |
28
|
|
|
} |
29
|
|
|
} |
30
|
|
|
|
31
|
|
|
protected function configureRoutes(RoutingConfigurator $routes): void |
32
|
|
|
{ |
33
|
|
|
$routes->import('../config/{routes}/' . $this->environment . '/*.yaml'); |
34
|
|
|
$routes->import('../config/{routes}/*.yaml'); |
35
|
|
|
|
36
|
|
|
if (is_file(dirname(__DIR__) . '/config/routes.yaml')) { |
37
|
|
|
$routes->import('../config/routes.yaml'); |
38
|
|
|
} |
39
|
|
|
|
40
|
|
|
$path = dirname(__DIR__) . '/src/Dictionary/config/routes.yaml'; |
41
|
|
|
is_file($path) && $routes->import($path); |
42
|
|
|
|
43
|
|
|
$path = dirname(__DIR__) . '/src/Crossword/config/routes.yaml'; |
44
|
|
|
is_file($path) && $routes->import($path); |
45
|
|
|
|
46
|
|
|
$path = dirname(__DIR__) . '/src/Game/config/routes.yaml'; |
47
|
|
|
is_file($path) && $routes->import($path); |
48
|
|
|
|
49
|
|
|
$path = dirname(__DIR__) . '/src/Swagger/config/routes.yaml'; |
50
|
|
|
is_file($path) && $routes->import($path); |
51
|
|
|
|
52
|
|
|
if (is_file($path = dirname(__DIR__) . '/config/routes.php')) { |
53
|
|
|
(require $path)($routes->withPath($path), $this); |
54
|
|
|
} |
55
|
|
|
} |
56
|
|
|
} |
57
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths