hbaeumer/erm-bundle

创建 Doctrine 实体的 ERM 图

安装: 198

依赖项: 0

建议者: 0

安全: 0

星标: 1

关注者: 2

分支: 1

公开问题: 2

类型:symfony-bundle

v1.0.1 2019-05-15 22:13 UTC

This package is auto-updated.

Last update: 2024-09-13 07:44:51 UTC


README

使用 Symfony Flex 的应用程序

打开命令行控制台,进入您的项目目录并执行

$ composer require hbaeumer/erm-bundle

不使用 Symfony Flex 的应用程序

步骤 1: 下载 Bundle

打开命令行控制台,进入您的项目目录并执行以下命令以下载此 Bundle 的最新稳定版本

$ composer require hbaeumer/erm-bundle

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

步骤 2: 启用 Bundle

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

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new \Hbaeumer\ErmBundle\HbaeumerErmBundle(),
        );

        // ...
    }

    // ...
}

步骤 3: 配置路由

#routes/dev/erm.yaml

hbaeumer_erm:
  resource: "@HbaeumerErmBundle/Resources/config/routing.yml"
  prefix:   /

步骤 4: 查看

https:///erm