thuata/frameworkbundle

Symfony 的模型框架包

安装: 80

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

公开问题: 1

类型:symfony-bundle

v1.5.9 2016-12-16 14:27 UTC

README

symfony 的模型框架

Thuata FrameworkBundle

此包提供了一种模型框架,它作为控制器和数据库管理器之间的中介。

要了解更多关于框架背后的机制以及如何使用它,请访问文档

安装

步骤 1: 下载包

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

$ composer require thuata/frameworkbundle "~1"

此命令要求您全局安装了 Composer,具体请参阅 Composer 文档中的安装章节

步骤 2: 启用包

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

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Thuata\FramworkBundle\ThuataFrameworkBundle(),
        );

        // ...
    }

    // ...
}