Skip to content

CodelyTV/php-criteria-from_symfony_request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Codely logo

🎼 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);
	}

Languages