22 lines
500 B
PHP
22 lines
500 B
PHP
<?php
|
|
|
|
namespace App\Controller;
|
|
|
|
use App\Core\Annotation\UrlGenerator;
|
|
use App\Entity\Blog\Post;
|
|
use App\UrlGenerator\FooUrlGenerator;
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
|
|
class FooController extends AbstractController
|
|
{
|
|
/**
|
|
* @UrlGenerator(service=FooUrlGenerator::class, method="generateIndex", options={})
|
|
*/
|
|
public function index(Post $post): Response
|
|
{
|
|
dump($post);
|
|
die;
|
|
}
|
|
}
|