Skip to content

Latest commit

 

History

History

criteria-from-symfony-request

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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