Skip to content

[Routing] Add FQCN and FQCN::method aliases when applicable #18822

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

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

alexandre-daubois
Copy link
Member

Fix #18437

routing.rst Outdated

class MainController extends AbstractController
{
#[Route('/', name: 'homepage', stateless: true)]
Copy link
Contributor

Choose a reason for hiding this comment

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

the stateless is not important here, isn't it?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's right, updated 👍

routing.rst Outdated
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;

class MainController extends AbstractController
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
class MainController extends AbstractController
final class MainController extends AbstractController

@javiereguiluz
Copy link
Member

Alex, thanks for contributing this feature!

@alexandre-daubois alexandre-daubois deleted the route-alias branch September 5, 2023 11:32
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] Add FQCN and FQCN::method aliases when applicable
4 participants