-
-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TASK: Refactor to include annotation routes via
provider
and `provi…
…derOptions` in Settings `Neos.Flow.mvc.routes` ``` Neos: Flow: mvc: routes: Vendor.Example: provider: \Neos\Flow\Mvc\Routing\RouteAnnotationRoutesProvider providerOptions: classNames: - Vendor\Example\Controller\ExampleController ```
- Loading branch information
Showing
8 changed files
with
122 additions
and
49 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 was deleted.
Oops, something went wrong.
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
21 changes: 21 additions & 0 deletions
21
Neos.Flow/Classes/Mvc/Routing/RoutesProviderWithOptionsInterface.php
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,21 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Neos\Flow\Mvc\Routing; | ||
|
||
/** | ||
* Supplier for lazily fetching the routes for the router. | ||
* | ||
* This layer of abstraction avoids having to parse the routes for every request. | ||
* The router will only request the routes if it comes across a route it hasn't seen (i.e. cached) before. | ||
* | ||
* @internal | ||
*/ | ||
interface RoutesProviderWithOptionsInterface extends RoutesProviderInterface | ||
{ | ||
/** | ||
* @param array<string, mixed> $options | ||
*/ | ||
public function withOptions(array $options): static; | ||
} |
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