Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Routing] Revert " Fix removing aliases pointing to removed route in RouteCollection::remove()"#52831

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@fancyweb
Copy link
Contributor

@fancywebfancyweb commentedNov 30, 2023
edited
Loading

QA
Branch?5.4
Bug fix?no
New feature?no
Deprecations?no
Issues#52806 (comment)
LicenseMIT

We need to find another solution that doesn't change the behavior on 5.4 😕

@carsonbotcarsonbot added this to the5.4 milestoneNov 30, 2023
@carsonbotcarsonbot changed the titleRevert "[Routing] Fix removing aliases pointing to removed route in RouteCollection::remove()"[Routing] Revert " Fix removing aliases pointing to removed route in RouteCollection::remove()"Nov 30, 2023
unset($this->aliases[$k]);
}
foreach ((array)$nameas$n) {
unset($this->routes[$n],$this->priorities[$n],$this->aliases[$n]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Maybe I'm missing something here, but why not have this method remove both an alias, if it's an alias, or a route with all its aliases, if it's a route?

fancyweb reacted with rocket emoji

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I also wondered the same. That'd make sense to me.

@mkrauser
Copy link
Contributor

Another thing about this solution:
The Aliases will be removed when the Route itself is removed within the PrefixTrait or HostTrait. But the alias is never re-added.

So when someone uses FQCN for their routing and they add Hosts or Prefixes, that will not work anymore.
Or am I missing something?

@nicolas-grekas
Copy link
Member

Closing in favor of#52845

nicolas-grekas added a commit that referenced this pull requestDec 1, 2023
…ve() (fancyweb)This PR was merged into the 5.4 branch.Discussion----------[Routing] Restore aliases removal in RouteCollection::remove()| Q             | A| ------------- | ---| Branch?       | 5.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Issues        |#52806 (comment)| License       | MITAs suggested in#52831 (comment)It's still a small behavior change on 5.4, let's see what people think 😃Commits-------3c6dc17 [Routing] Restore aliases removal in RouteCollection::remove()
@fancywebfancyweb deleted the routing/revert-coll-remove-stuff branchDecember 1, 2023 11:12
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@HypeMCHypeMCHypeMC left review comments

@xabbuhxabbuhxabbuh approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

6 participants

@fancyweb@mkrauser@nicolas-grekas@xabbuh@HypeMC@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp