video-games-records/core-bundle

VideoGamesRecords CoreBundle

安装数: 1,123

依赖: 1

建议者: 0

安全: 0

星标: 2

关注者: 5

分支: 1

开放问题: 0

类型:symfony-bundle


README

开发

Scrutinizer Code Quality Build Status

安装

步骤 1: 下载包

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

$ composer require video-games-records/core-bundle "~1"

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

步骤 2: 启用包

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

<?php
// app/AppKernel.php

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

            new VideoGamesRecords\CoreBundle\VideoGamesRecordsCoreBundle(),
        );

        // ...
    }

    // ...
}

步骤 3: 配置

数据库

为了将你的用户实体链接到此模块,你应该添加以下配置:(用你的用户类替换ProjetNormandie\UserBundle\Entity\User)。

官方文档

路由

video_games_records_core:
    resource: "@VideoGamesRecordsCoreBundle/Controller/"
    type:     annotation