Skip to content

Commit f71343a

Browse files
committed
minor #736 Fix #[Route] usage in docs (jmsche)
This PR was merged into the 2.x branch. Discussion ---------- Fix #[Route] usage in docs | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Tickets | N/A | License | MIT Commits ------- 8b8c3fe Fix #[Route] usage in docs
2 parents f197685 + 8b8c3fe commit f71343a

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)