forked from sofascore/purgatory-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAuthorController.php
More file actions
28 lines (24 loc) · 767 Bytes
/
AuthorController.php
File metadata and controls
28 lines (24 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
declare(strict_types=1);
namespace Sofascore\PurgatoryBundle\Tests\Functional\DebugCommand\Controller;
use Sofascore\PurgatoryBundle\Attribute\PurgeOn;
use Sofascore\PurgatoryBundle\Tests\Functional\DebugCommand\Entity\Author;
use Symfony\Component\HttpKernel\Attribute\AsController;
use Symfony\Component\Routing\Annotation\Route as AnnotationRoute;
use Symfony\Component\Routing\Attribute\Route;
#[AsController]
#[Route('/author')]
#[AnnotationRoute('/author')]
class AuthorController
{
#[Route('/{author_id}', 'author_show')]
#[AnnotationRoute('/{author_id}', name: 'author_show')]
#[PurgeOn(Author::class,
routeParams: [
'author_id' => 'id',
],
)]
public function show(Author $author): void
{
}
}