示例#1
0
 /**
  * Construct this object by extending the basic Controller class
  */
 public function __construct()
 {
     parent::__construct();
     // this entire controller should only be visible/usable by logged in users, so we put authentication-check here
     Auth::checkAuthentication();
     //check the IP whitelist
     Auth::checkIPAuthentication();
 }
示例#2
0
 /**
  * Construct this object by extending the basic Controller class
  */
 public function __construct()
 {
     parent::__construct();
 }
示例#3
0
 /**
  * Construct this object by extending the basic Controller class
  */
 public function __construct(LoggerInterface $logger = null)
 {
     parent::__construct($logger);
     //check the IP whitelist
     Auth::checkIPAuthentication();
 }
示例#4
0
 /**
  * Construct this object by extending the basic Controller class. The parent::__construct thing is necessary to
  * put checkAuthentication in here to make an entire controller only usable for logged-in users (for sure not
  * needed in the LoginController).
  */
 public function __construct()
 {
     parent::__construct();
     //check the IP whitelist
     Auth::checkIPAuthentication();
 }