forked from lubiana/futtern
remove trash
This commit is contained in:
parent
f731b46f86
commit
a948e992d8
1 changed files with 0 additions and 21 deletions
|
@ -1,21 +0,0 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
namespace App\State;
|
||||
|
||||
use ApiPlatform\Metadata\Operation;
|
||||
use ApiPlatform\State\ProviderInterface;
|
||||
use App\Repository\FoodOrderRepository;
|
||||
use Override;
|
||||
|
||||
final readonly class OpenFoodOrderProvider implements ProviderInterface
|
||||
{
|
||||
public function __construct(
|
||||
private FoodOrderRepository $repository
|
||||
) {}
|
||||
|
||||
#[Override]
|
||||
public function provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null
|
||||
{
|
||||
return $this->repository->findOpenOrders();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue