Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 481 Bytes

Readme.md

File metadata and controls

23 lines (18 loc) · 481 Bytes

UUID Param Converter

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 }