antonchernik/restful-bundle

Useful classes for Restful API

v1.5.8 2021-08-18 20:37 UTC

README

composer require antonchernik/restful-bundle

Register the bundle:

// config/bundles.php

return [
    ...
    RestfulBundle\RestfulBundle::class => ['all' => true],
];

Add configuration to services.yaml:

parameters:
  restful_bundle.validation.message_map: !php/const App\Dictionary\ValidationMessages::MESSAGE_MAP
  #or use Symfony Standard RestfulBundle\Dictionary\ValidationMessages::MESSAGE_MAP