happyr/annotation-warmer
最新稳定版本:0.3.0
Composer 安装命令:
composer require happyr/annotation-warmer
包简介
Warms up your annotation cache
README 文档
README
When this bundle is installed and enabled it will make sure all your annotation metadata is cached when your container dependency container is built.
We also provide a command to validate that all annotations are properly loaded.
Install
composer require happyr/annotation-warmer
Use
We warm upp all classes in src by default. You may use a different configuration of paths if you like:
happyr_annotation_warmer: paths: - '%kernel.project_dir%/src/Message/Command' - '%kernel.project_dir%/src/Message/Event'
Linting annotations
To make sure your annotations are properly configured you may run the lint command:
bin/console lint:annotations
Assumptions
- We assume that the classes in the specified paths are using PSR-4.
- We also assume that all
*.phpfiles in the path has a class with the same as the filename.
Limitations
We are only warming cache for annotations to the Serializer and Validation component.
统计信息
- 总下载量: 5.42k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-07