for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Spiral Framework.
*
* @license MIT
* @author Anton Titov (Wolfy-J)
*/
declare(strict_types=1);
namespace Spiral\Tests\Router\App\Controller;
use Spiral\Router\Annotation\Route;
class HomeController
{
* @Route(route="/", name="index", methods="GET")
public function index()
return 'index';
}
* @Route(route="/", name="method", methods="POST")
public function method()
return 'method';
#[Route(route: '/attribute', name: 'attribute', methods: 'GET', group: 'test')]
public function attribute()
return 'attribute';