We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
__invoke
I'm using controllers that only contain 1 action, called: __invoke.
For example:
<?php namespace AdminBundle\Controller\Cases; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; class ShowCaseController extends BaseController { /** * @Route("/cases/show/{id}", name="case_show") * @Template */ public function __invoke() { } }
The template is located in AdminBundle/Resources/views/Cases/ShowCase.html.twig.
AdminBundle/Resources/views/Cases/ShowCase.html.twig
Symfony / SensioFrameworkExtraBundle perfectly pick this up. But this amazing plugin doesn't :(
Whenever I click on @Template it opens the Annotation instead of showing the dropdown with the Twig template.
@Template
The text was updated successfully, but these errors were encountered:
detect Twig templates when using __invoke controllers #980; drop so…
02e1d9f
…me redundant template annotation code
now its a little bit more amazing ;)
Sorry, something went wrong.
You are awesome! Put a small donation in, thanks ✌️
add @template __invoke support for annotation template creation quick…
e3bdbfc
…fix and in Twig template controller resolver #980
No branches or pull requests
I'm using controllers that only contain 1 action, called:
__invoke
.For example:
The template is located in
AdminBundle/Resources/views/Cases/ShowCase.html.twig
.Symfony / SensioFrameworkExtraBundle perfectly pick this up. But this amazing plugin doesn't :(
Whenever I click on
@Template
it opens the Annotation instead of showing the dropdown with the Twig template.The text was updated successfully, but these errors were encountered: