|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/** |
|
4
|
|
|
* For the full copyright and license information, please view |
|
5
|
|
|
* the LICENSE file that was distributed with this source code. |
|
6
|
|
|
*/ |
|
7
|
|
|
|
|
8
|
|
|
declare(strict_types=1); |
|
9
|
|
|
|
|
10
|
|
|
namespace Symfony\Component\DependencyInjection\Loader\Configurator; |
|
11
|
|
|
|
|
12
|
|
|
use CoderCat\JWKToPEM\JWKConverter; |
|
13
|
|
|
use EcPhp\ApiGwAuthenticationBundle\Security\Core\User\ApiGwAuthenticationUserProvider; |
|
14
|
|
|
use EcPhp\ApiGwAuthenticationBundle\Service\KeyConverter\KeyConverter; |
|
15
|
|
|
use EcPhp\ApiGwAuthenticationBundle\Service\KeyConverter\KeyConverterInterface; |
|
16
|
|
|
use EcPhp\ApiGwAuthenticationBundle\Service\KeyLoader\ApiGwKeyLoader; |
|
17
|
|
|
use Symfony\Component\HttpClient\CachingHttpClient; |
|
|
|
|
|
|
18
|
|
|
|
|
19
|
|
|
return static function (ContainerConfigurator $container) { |
|
20
|
|
|
$container |
|
21
|
|
|
->services() |
|
22
|
|
|
->set('api_gw_authentication.http_client', CachingHttpClient::class) |
|
23
|
|
|
->arg('$store', service('http_cache.store')) |
|
24
|
|
|
->autowire(true) |
|
25
|
|
|
->autoconfigure(true); |
|
26
|
|
|
$container |
|
27
|
|
|
->services() |
|
28
|
|
|
->set('api_gw_authentication.key_converter.jwk_converter', JWKConverter::class) |
|
29
|
|
|
->autowire(true) |
|
30
|
|
|
->autoconfigure(true); |
|
31
|
|
|
|
|
32
|
|
|
$container |
|
33
|
|
|
->services() |
|
34
|
|
|
->set('api_gw_authentication.key_converter', KeyConverter::class) |
|
35
|
|
|
->arg('$jwkConverter', service('api_gw_authentication.key_converter.jwk_converter')) |
|
36
|
|
|
->autowire(true) |
|
37
|
|
|
->autoconfigure(true); |
|
38
|
|
|
|
|
39
|
|
|
$container |
|
40
|
|
|
->services() |
|
41
|
|
|
->alias( |
|
42
|
|
|
KeyConverterInterface::class, |
|
43
|
|
|
'api_gw_authentication.key_converter' |
|
44
|
|
|
); |
|
45
|
|
|
|
|
46
|
|
|
$container |
|
47
|
|
|
->services() |
|
48
|
|
|
->set('api_gw_authentication.api_gw_keyloader', ApiGwKeyLoader::class) |
|
49
|
|
|
->decorate('lexik_jwt_authentication.key_loader.raw') |
|
50
|
|
|
->arg('$configuration', '%api_gw_authentication%') |
|
51
|
|
|
->arg('$projectDir', '%kernel.project_dir%') |
|
52
|
|
|
->arg('$httpClient', service('api_gw_authentication.http_client')) |
|
53
|
|
|
->autowire(true) |
|
54
|
|
|
->autoconfigure(true); |
|
55
|
|
|
|
|
56
|
|
|
$container |
|
57
|
|
|
->services() |
|
58
|
|
|
->set('api_gw_authentication.user_provider', ApiGwAuthenticationUserProvider::class) |
|
59
|
|
|
->autowire(true) |
|
60
|
|
|
->autoconfigure(true); |
|
61
|
|
|
|
|
62
|
|
|
$container |
|
63
|
|
|
->services() |
|
64
|
|
|
->load('EcPhp\\ApiGwAuthenticationBundle\\Controller\\', __DIR__ . '/../../Controller') |
|
65
|
|
|
->autowire(true) |
|
66
|
|
|
->autoconfigure(true) |
|
67
|
|
|
->tag('controller.service_arguments'); |
|
68
|
|
|
}; |
|
69
|
|
|
|
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