public function __construct(UserInterface $user, GroupInterface $group, SessionInterface $session) { $this->user = $user; $this->group = $group; $this->session = $session; parent::__construct(); }
public function __construct(UserInterface $user, GroupInterface $group, SessionInterface $session) { $this->user = $user; $this->group = $group; $this->session = $session; //Check CSRF token on POST $this->beforeFilter('csrf', array('on' => 'post')); // Set up Auth Filters $this->beforeFilter('auth', array('only' => array('change'))); $this->beforeFilter('inGroup:Admin', array('only' => array('show', 'index', 'destroy', 'suspend', 'unsuspend', 'ban', 'unban', 'edit', 'update'))); //array('except' => array('create', 'store', 'activate', 'resend', 'forgot', 'reset'))); parent::__construct(); }