File tree Expand file tree Collapse file tree 4 files changed +29
-21
lines changed Expand file tree Collapse file tree 4 files changed +29
-21
lines changed Original file line number Diff line number Diff line change 32
32
"psalm/plugin-symfony" : " ^2.2" ,
33
33
"symfony/browser-kit" : " ^4.4|^5.0" ,
34
34
"symfony/phpunit-bridge" : " ^5.2" ,
35
- "symfony/yaml" : " ^4.4|^5.0" ,
36
35
"vimeo/psalm" : " ^4.6"
37
36
},
38
37
"autoload" : {
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ use League \Bundle \OAuth2ServerBundle \Tests \Fixtures \SecurityTestController ;
6
+ use Symfony \Component \Routing \Loader \Configurator \RoutingConfigurator ;
7
+
8
+ return function (RoutingConfigurator $ routes ) {
9
+ $ routes ->import ('@LeagueOAuth2ServerBundle/Resources/config/routes.php ' );
10
+
11
+ $ routes
12
+ ->add ('security_test ' , '/security-test ' )
13
+ ->controller ([SecurityTestController::class, 'helloAction ' ])
14
+
15
+ ->add ('security_test_scopes ' , '/security-test-scopes ' )
16
+ ->controller ([SecurityTestController::class, 'scopeAction ' ])
17
+ ->defaults ([
18
+ 'oauth2_scopes ' => ['fancy ' ],
19
+ ])
20
+
21
+ ->add ('security_test_roles ' , '/security-test-roles ' )
22
+ ->controller ([SecurityTestController::class, 'rolesAction ' ])
23
+ ->defaults ([
24
+ 'oauth2_scopes ' => ['fancy ' ],
25
+ ])
26
+ ;
27
+ };
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -91,8 +91,8 @@ public function registerContainerConfiguration(LoaderInterface $loader)
91
91
'secret ' => 'nope ' ,
92
92
'test ' => null ,
93
93
'router ' => [
94
- 'resource ' => __DIR__ . '/Fixtures/routes.yaml ' ,
95
- 'type ' => 'yaml ' ,
94
+ 'resource ' => __DIR__ . '/Fixtures/routes.php ' ,
95
+ 'type ' => 'php ' ,
96
96
'utf8 ' => true ,
97
97
],
98
98
]);
You can’t perform that action at this time.
0 commit comments