Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Dec 29, 2024
1 parent 4f69398 commit 9522fd4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ return [
## Controller

The following is a simple controller which shows how to use the PSX specific attributes to describe
query parameters:
different HTTP parameters:

```php
<?php
Expand All @@ -46,12 +46,11 @@ use App\Model\Post;
use App\Model\Message;
use PSX\Api\Attribute\Body;
use PSX\Api\Attribute\Param;
use PSX\Api\Attribute\Post;
use PSX\Api\Attribute\Query;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Attribute\Route;

final class Post extends AbstractController
final class PostController extends AbstractController
{
public function __construct(private PostService $service, private PostRepository $repository)
{
Expand Down

0 comments on commit 9522fd4

Please sign in to comment.