idci / agreement-bundle

Symfony 扩展包,用于处理协议管理功能的一般条件

v1.0.0 2018-06-07 14:05 UTC

This package is auto-updated.

Last update: 2024-08-24 21:27:16 UTC


README

AgreementBundle 是一个用于管理类似一般条件的协议的 symfony 扩展包。

安装

在您的 composer.json 文件中添加依赖

"require": {
    ...
    "idci/agreement-bundle": "~1.0"
},

使用 composer 在您的应用程序中安装这些新依赖

$ composer update

在您的应用程序内核中注册所需的扩展包

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new IDCI\Bundle\AgreementBundle\IDCIAgreementBundle(),
    );
}

导入扩展包配置

# app/config/config.yml

imports:
    - { resource: @IDCIAgreementBundle/Resources/config/config.yml }

测试(使用 docker)

安装扩展包依赖

$ make composer-update

执行单元测试

$ make phpunit