定制 happyr/annotation-warmer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

happyr/annotation-warmer

最新稳定版本:0.3.0

Composer 安装命令:

composer require happyr/annotation-warmer

包简介

Warms up your annotation cache

README 文档

README

Latest Version Software License Build Status Code Coverage Quality Score Total Downloads

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 *.php files 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

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-11-07