-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for custom ConfigureRoutes implementations
Also in FastRoute: - rename $configuredRoutes and $routeConfiguration to $configureRoutes for consistency - add configureRoutes() method to allow testing for the custom implementation - rename buildConfiguration() to processedConfiguration(), and make public so utilities (such as a URL dumper) can examine the routes - make RouteCollector non-final so it can be extended by consumers, e.g. to auto-add route names
- Loading branch information
Showing
4 changed files
with
58 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace FastRoute\Test; | ||
|
||
use FastRoute\RouteCollector; | ||
|
||
class FakeRouteCollector extends RouteCollector | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters