Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1021 Bytes

File metadata and controls

58 lines (39 loc) · 1021 Bytes

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
{
    ...
}