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