loevgaard/dandomain-consignment-bundle

Symfony 组件,用于处理 Dandomain 中的寄售制造商

v1.0.2 2018-06-08 11:34 UTC

This package is auto-updated.

Last update: 2024-09-06 09:29:29 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score

Symfony 组件,用于处理 Dandomain 中的寄售制造商。

安装

步骤 1:安装依赖

此组件依赖于 KNP Labs 的 Doctrine2 行为组件

首先安装此组件,然后返回此页面。

步骤 2:下载组件

打开命令行,进入项目目录,并执行以下命令以下载此组件的最新稳定版本

$ composer require loevgaard/dandomain-consignment-bundle

此命令要求您全局安装了 Composer,如 Composer 文档中的安装章节中所述。

步骤 3:启用组件

然后,通过将其添加到项目中 app/AppKernel.php 文件中注册的组件列表来启用组件

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Loevgaard\DandomainConsignmentBundle\LoevgaardDandomainConsignmentBundle(),
        ];

        // ...
    }

    // ...
}

步骤 4:配置组件

# app/config/config.yml

loevgaard_dandomain_consignment:
    report_dir: "insert directory"

步骤 5:更新数据库架构

$ php bin/console doctrine:schema:update --force

或使用 Doctrine 迁移