/** * 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(); }
/** * Construct this object by extending the basic Controller class */ public function __construct() { parent::__construct(); }
/** * Construct this object by extending the basic Controller class */ public function __construct(LoggerInterface $logger = null) { parent::__construct($logger); //check the IP whitelist Auth::checkIPAuthentication(); }
/** * 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(); }