Skip to content

Commit 8073beb

Browse files
committed
BC layer for route loading
1 parent 401635b commit 8073beb

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

Resources/config/routes.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
trigger_deprecation('league/oauth2-server-bundle', '0.11', 'Loading resource "@LeagueOAuth2ServerBundle/Resources/config/routes.php" is deprecated. Load "@LeagueOAuth2ServerBundle/config/routes.php" instead.');
6+
7+
return require __DIR__ . '/../../config/routes.php';

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"league/oauth2-server": "^9.2",
2424
"nyholm/psr7": "^1.4",
2525
"psr/http-factory": "^1.0",
26+
"symfony/deprecation-contracts": "^3",
2627
"symfony/event-dispatcher": "^6.4|^7.0",
2728
"symfony/filesystem": "^6.4|^7.0",
2829
"symfony/framework-bundle": "^6.4|^7.0",

src/Resources/config/routes.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
trigger_deprecation('league/oauth2-server-bundle', '0.11', 'Loading file "%s" is deprecated. Load "%s" instead.', __FILE__, realpath(__DIR__ . '/../../../config/routes.php'));
6+
7+
return require __DIR__ . '/../../../config/routes.php';

0 commit comments

Comments
 (0)