check24/apitk-common-bundle
Composer 安装命令:
composer require check24/apitk-common-bundle
包简介
Contains classes, interfaces and traits that are shared between check24/apitk-* bundles
README 文档
README
Contains classes, interfaces and traits that are shared between apitk-* bundles, mainly:
Installation
Install the package via composer:
composer require check24/apitk-common-bundle
You usually don't have to install it by yourself, because it is only for other apitk-bundles.
Components
Annotation/ParamConverter
Useful traits for your ParamConverter Annotation:
- EntityAwareAnnotationTrait
Addsentity,entityManagerandmethodNameoptions - RequestParamAwareAnnotationTrait
AddsrequestParamoption
Describer/AbstractDescriber
Common logic for changing Swagger/OpenAPI annotations via PHP.
ParamConverter
Useful traits for your ParamConverter logic:
ContextAwareParamConverterTrait.php EntityAwareParamConverterTrait.php
- ContextAwareParamConverterTrait
Provides$this->getOption('name', 'default')convenience methods to access annotation options easily. - EntityAwareParamConverterTrait
AddsgetEntity(),getEntityManager()andcallRepositoryMethod()convenience to access an entity, its appropriate entity manager and repository for the given Annotation options. - RequestParamAwareParamConverterTrait
AddsgetRequestParam()andgetRequestParamValue()methods to access a request param given by Annotation options easily. It's also possible to define defaults here.
统计信息
- 总下载量: 6.55k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-03