Skip to content

[RFC] Add a make:action commandΒ #58

@webda2l

Description

@webda2l

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions