web-ant/webant-corebundle

WebAnt的核心系统

安装: 148

依赖项: 0

建议者: 0

安全: 0

星标: 3

关注者: 4

分支: 2

开放性问题: 0

类型:symfony-bundle

v1.3.2 2016-01-26 10:27 UTC

This package is not auto-updated.

Last update: 2024-09-24 04:04:47 UTC


README

WebAnt的核心系统

文档

安装

步骤 1: 安装 WebAntCoreBundle

安装此包的首选方式是依赖 Composer。只需在您的 composer.json 文件中添加即可

{
    "require": {
        // ...
        "web-ant/webant-corebundle": "dev-master"
    }
}

步骤 2: 启用包

最后,在内核中启用该包

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new WebAnt\CoreBundle\CoreBundle(),
    );
}

步骤 3: 我们类继承自 AbstractController

现在您必须连接 AbstractController 并从它继承类,例如

<?php
// RootDir/src/DemoBundle/Controller/DemoController.php;

namespace /src/DemoBundle/Controller;

use WebAnt\CoreBundle\Controller\AbstractController;

class DemoController extends AbstractController
{
    ...
}