Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Routing] Add Attribute code examples for alias in #[Route] attribute #20638

Open
wants to merge 1 commit into
base: 7.3
Choose a base branch
from

Conversation

welcoMattic
Copy link
Member

Fixes #20600

This one adds code examples to alias route in #[Route] attribute. It also add example using DeprecatedAlias.

I've also added a note to precise new_route_name and original_route_name meaning, to avoid misunderstanding.

cc @damienfern

routing.rst Outdated Show resolved Hide resolved
@welcoMattic
Copy link
Member Author

@stof for review

I've fixed issues we talk about in private.

But, as we discussed, we need to make this Route Alias part of the documentation a bit clearer on lower branches. This PR documents the new way to create route aliases using Attributes (which differs from the way to do in YAML, XML and PHP, if I've understood correctly).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Routing] Allow aliases in #[Route] attribute
3 participants