BaseBundle for Symfony2 projects. This bundle contains some shortcuts and code snippets to ease Symfony2 projects developpment.
php composer.phar require bluebear/basebundle
BaseBundle offers some features to help you :
<?php
...
use BlueBear\BaseBundle\Behavior\ControllerTrait;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class MyController extends Controller {
use ControllerTrait;
...
Your controller should have following methods (those methods are native in Symfony Controller):
public function createNotFoundException($message = 'Not Found', Exception $previous = null)
public function generateUrl($route, $parameters = array(), $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH)
ControllerTrait has following methods :
ContainerTrait has following methods :
EntityManagerTrait has following methods :
...
How can I help you explore Laravel packages today?