acti/am_i_up_to_date_sf

安装: 601

依赖: 0

建议者: 0

安全: 0

星级: 0

关注者: 6

分支: 0

开放问题: 0

类型:symfony-bundle

v0.3 2019-11-12 09:20 UTC

This package is auto-updated.

Last update: 2024-09-16 21:04:54 UTC


README

为了安装

composer require acti/am_i_up_to_date_sf

然后

  • 检查bundle是否已正确注册在您的应用程序中 Acti\VersionBundle\ActiVersionBundle()

  • 添加一个包含以下内容的acti_version.yml文件

acti_version:
       token: tokendedemon
       path: /home/monprojet/baseprojetdemo

如有必要,将其导入到config.yml中,例如

    - { resource: bundles/acti_version.yml }
  • 并在routing.yml
renderversionacti:
    path: /url-au-choix
    controller: Acti\VersionBundle\Controller\VersionController:renderVersion

路由仅通过GET调用,并带有以下头部信息apikey(必须与提供的token相匹配)。并且path是您项目的根目录(用于确定composer.lock的位置)