Skip to content

Commit 8b8c3fe

Browse files
committed
Fix #[Route] usage in docs
1 parent 122e228 commit 8b8c3fe

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/Cropperjs/doc/index.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ create a Crop object, and use this object inside a standard form::
4040

4141
class HomeController extends AbstractController
4242
{
43-
/**
44-
* #[Route('/', name: 'app_homepage')]
45-
*/
43+
#[Route('/', name: 'app_homepage')]
4644
public function index(CropperInterface $cropper, Request $request): Response
4745
{
4846
$crop = $cropper->createCrop('/server/path/to/the/image.jpg');

src/LiveComponent/doc/index.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,9 +1058,7 @@ write your form controller logic::
10581058

10591059
class PostController extends AbstractController
10601060
{
1061-
/**
1062-
* #[Route('/admin/post/{id}/edit', name: 'app_post_edit')]
1063-
*/
1061+
#[Route('/admin/post/{id}/edit', name: 'app_post_edit')]
10641062
public function edit(Request $request, Post $post, EntityManagerInterface $entityManager): Response
10651063
{
10661064
$form = $this->createForm(PostType::class, $post);

0 commit comments

Comments
 (0)