Core systems in WebAnt
Installation
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"
}
}
Finally, enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new WebAnt\CoreBundle\CoreBundle(),
);
}
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
{
...
}