コード例 #1
0
ファイル: SocialController.php プロジェクト: arandilopez/User
 public function __construct(UserInterface $user, GroupInterface $group, SessionInterface $session)
 {
     $this->user = $user;
     $this->group = $group;
     $this->session = $session;
     parent::__construct();
 }
コード例 #2
0
ファイル: PublicController.php プロジェクト: arandilopez/User
 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();
 }