I want to check if the user is logged in - before calling the call.
Something like preDispatch()that Symfony\Bundle\FrameworkBundle\Controller\Controllerwould be great.
I would like to avoid :
class MyBaseController extends Controller {
public function __construct() {
}
}
class MyFooController extends MyBaseController() {
}
I just found threads from 2011/2012. I'm new to Symfony using version 2.5, and from the very beginning I would like to learn about best practices. Any tips?
Thanks in advance!
Edit
interesting:
http://symfony.com/doc/current/cookbook/event_dispatcher/before_after_filters.html
source
share