happyr/uuid-param-converter

A simple param converter that handles UUID

dev-master 2020-05-16 13:35 UTC

This package is auto-updated.

Last update: 2024-04-16 22:16:45 UTC


README

An excellent ParamConverter that works with SensioLabsExtraBundle.

It converter parameters of the following pattern:

  • name_uuid
  • nameUuid
  • uuid

Install

composer require happyr/uuid-param-converter
# app/config/happyr_param_converter.yml
services:
    Happyr\UuidParamConverter:
        arguments: ['@doctrine.registry']
        tags:
            - { name: request.param_converter, priority: 5, converter: uuid_converter }