codelytv/criteria-from-symfony-request

There is no license information available for the latest version (0.1.3) of this package.

0.1.3 2024-08-06 13:56 UTC

This package is auto-updated.

Last update: 2024-12-06 15:05:33 UTC


README

🎼 Criteria from Symfony Request

🔒 Read-only repository

Any modification must be done in the main repository.

📥 Installation

composer require codelytv/criteria-from-symfony-request

💻 Usage

The criteria converter expect an url with the following format.

final readonly class CoursesGetController
{
	public function __construct(private CriteriaFromSymfonyRequestConverter $converter) {}

	public function __invoke(Request $request): JsonResponse
	{
		$criteria = $this->converter->toCriteria($request);
	}