Skip to content
Core systems in WebAnt
PHP HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Command
Controller
Entity
EventListener
Generator
Resources
Tests
Util
.DS_Store
.gitignore
CoreBundle.php
README.md
build.xml
composer.json

README.md

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
{
    ...
}
You can’t perform that action at this time.