antonchernik / restful-bundle
Restful API 的实用类
v1.5.8
2021-08-18 20:37 UTC
Requires
- php: >=8.0
- antonchernik/dto-bundle: >=1.0
- antonchernik/logging-bundle: >=1.1
- doctrine/annotations: >=1.10
- doctrine/collections: >=1.5
- justinrainbow/json-schema: ^5.2
- phpdocumentor/reflection-docblock: ^5.2
- sensio/framework-extra-bundle: >=6.0
- symfony/expression-language: ^5.3
- symfony/framework-bundle: >=5.0
- symfony/property-access: >=5.0
This package is auto-updated.
Last update: 2024-09-19 03:47:50 UTC
README
composer require antonchernik/restful-bundle
注册包
// config/bundles.php return [ ... RestfulBundle\RestfulBundle::class => ['all' => true], ];
向 services.yaml 添加配置
parameters: restful_bundle.validation.message_map: !php/const App\Dictionary\ValidationMessages::MESSAGE_MAP #or use Symfony Standard RestfulBundle\Dictionary\ValidationMessages::MESSAGE_MAP