Add command to dump all routes as yaml to opt out of this bundle#29
Merged
alexander-schranz merged 24 commits intoJun 10, 2025
Merged
Add command to dump all routes as yaml to opt out of this bundle#29alexander-schranz merged 24 commits into
alexander-schranz merged 24 commits into
Conversation
| unset($routeData[$key]); | ||
| } | ||
| } | ||
| $routes[$name] = $routeData; |
Member
There was a problem hiding this comment.
we should add an option to filter out only specific routes:
--controller="sulu_category.category_controller" # matching all start with this
or
--name-prefix="sulu_category." # matching all start with this
Co-authored-by: Alexander Schranz <alexander@sulu.io>
Co-authored-by: Alexander Schranz <alexander@sulu.io>
Co-authored-by: Alexander Schranz <alexander@sulu.io>
Co-authored-by: Alexander Schranz <alexander@sulu.io>
Co-authored-by: Alexander Schranz <alexander@sulu.io>
| } | ||
|
|
||
| if ($controllerName !== null) { | ||
| return $data['controller'] !== $controllerName; |
Member
There was a problem hiding this comment.
also str_starts_with as previousy the controller service included more actions
Contributor
Author
There was a problem hiding this comment.
I mean you can't use both filters in combination but that doesn't sound like a use-case.
alexander-schranz
approved these changes
Jun 10, 2025
…tingBundle into adding_command_to_migrate
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We want to remove this plugin from the sulu core code. For that we need a way to generate the routes as a yaml file and copy it over to the project.
This PR adds a command that dumps all routes as YAML then you can copy over what you need.
If you want XML routing just use the Symfony router:
bin/console debug:router --format xmlIf you want php routing. Dump the yaml and convert it with the
symplify/config-transformerpackage.