Skip to content

Conversation

@adrienlucas
Copy link
Contributor

Allows to create invokable controllers as described in the documentation.

Copy link
Member

@weaverryan weaverryan left a comment

Choose a reason for hiding this comment

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

Waiting for the tests - but it looks nice to me!

@adrienlucas adrienlucas force-pushed the allow-invokable-controllers branch from eb6fff8 to 138f686 Compare July 18, 2023 14:49
@adrienlucas
Copy link
Contributor Author

Waiting for the tests - but it looks nice to me!

Fixed CS. Not sure why one of the test is failing.
Thanks for your very quick feedback!

@adrienlucas adrienlucas force-pushed the allow-invokable-controllers branch from 9127bac to 5640423 Compare July 18, 2023 17:43
@adrienlucas
Copy link
Contributor Author

adrienlucas commented Jul 18, 2023

Second commit : the name of the template should not be {controller_name}/index.html.twig but rather {controller_name}.html.twig.
For example: App\Controller\Blog\CreateBlogPostController => templates/blog/create_blog_post.html.twig.

Edit : that is only for invokable controllers of course.

@adrienlucas adrienlucas requested a review from weaverryan July 18, 2023 17:55
@weaverryan weaverryan force-pushed the allow-invokable-controllers branch from 5640423 to 74cb81a Compare July 19, 2023 17:27
@weaverryan
Copy link
Member

Awesome work - thanks for this Adrien!

@weaverryan weaverryan merged commit 59db45a into symfony:main Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants