Skip to content

Commit fcce17c

Browse files
committed
minor #19 Remove Yaml dev dependency (mtarld)
This PR was merged into the 0.1-dev branch. Discussion ---------- Remove Yaml dev dependency Commits ------- df936ad Remove Yaml dev dependency
2 parents d68a9c3 + df936ad commit fcce17c

File tree

4 files changed

+29
-21
lines changed

4 files changed

+29
-21
lines changed

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"psalm/plugin-symfony": "^2.2",
3333
"symfony/browser-kit": "^4.4|^5.0",
3434
"symfony/phpunit-bridge": "^5.2",
35-
"symfony/yaml": "^4.4|^5.0",
3635
"vimeo/psalm": "^4.6"
3736
},
3837
"autoload": {

tests/Fixtures/routes.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
};

tests/Fixtures/routes.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

tests/TestKernel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ public function registerContainerConfiguration(LoaderInterface $loader)
9191
'secret' => 'nope',
9292
'test' => null,
9393
'router' => [
94-
'resource' => __DIR__ . '/Fixtures/routes.yaml',
95-
'type' => 'yaml',
94+
'resource' => __DIR__ . '/Fixtures/routes.php',
95+
'type' => 'php',
9696
'utf8' => true,
9797
],
9898
]);

0 commit comments

Comments
 (0)