-
-
Notifications
You must be signed in to change notification settings - Fork 436
Closed
Description
In the same spirit of make:controller but for those who prefers ADR action instead controller
By example:
<?php
namespace App\Action;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Component\HttpFoundation\Response;
class ShowCategory
{
/**
* @Route("/category", name="category")
*/
public function __invoke()
{
return new Response('Welcome to your new action !');
}
}
I have time to add a PR tomorrow I think
codedmonkey
Metadata
Metadata
Assignees
Labels
No labels