| Conditions | 2 |
| Paths | 2 |
| Total Lines | 21 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function process(ContainerBuilder $container): void |
||
| 24 | { |
||
| 25 | if (!$container->hasDefinition(ClientConfigurationEndpoint::class)) { |
||
| 26 | return; |
||
| 27 | } |
||
| 28 | |||
| 29 | $path = $container->getParameter('oauth2_server.endpoint.client_configuration.path'); |
||
| 30 | $host = $container->getParameter('oauth2_server.endpoint.client_configuration.host'); |
||
| 31 | $route_loader = $container->getDefinition(RouteLoader::class); |
||
| 32 | $route_loader->addMethodCall('addRoute', [ |
||
| 33 | 'client_configuration', |
||
| 34 | 'client_configuration_endpoint_pipe', |
||
| 35 | 'dispatch', |
||
| 36 | $path, // path |
||
| 37 | [], // defaults |
||
| 38 | [], // requirements |
||
| 39 | [], // options |
||
| 40 | $host, // host |
||
| 41 | ['https'], // schemes |
||
| 42 | ['GET', 'PUT', 'DELETE'], // methods |
||
| 43 | '', // condition |
||
| 44 | ]); |
||
| 47 |