web-ant/webant-corebundle

Core systems in WebAnt

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

This package is not auto-updated.

Last update: 2024-04-23 01:50:39 UTC


README

Core systems in WebAnt

Documentation

Installation

Step 1: Install WebAntCoreBundle

The preferred way to install this bundle is to rely on Composer. Just add in your composer.json:

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

Step 2: Enable the bundle

Finally, enable the bundle in the kernel:

<?php
// app/AppKernel.php

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

Step 3: Our classes inherit from AbstractController

Now you must to connect AbstractController and inherit the classes from it, example:

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

namespace /src/DemoBundle/Controller;

use WebAnt\CoreBundle\Controller\AbstractController;

class DemoController extends AbstractController
{
    ...
}