public function __construct(Application $app, $module, $action) { parent::__construct($app, $module, $action); $this->authenticationRedirection(); $this->init(); $this->displayInfoMessage(); }
public function __construct(Api $app, $module, $action) { parent::__construct($app, $module, $action); $this->responseContent = new ApiResponse(); $this->guardian = new ApiGuardian($app); }
public function __construct(Application $app, $module, $action) { parent::__construct($app, $module, $action); $this->init(); }
/** * Initialize the back controller. * @param Application $app The application. * @param string $module The module. * @param string $action The action. */ public function __construct(Application $app, $module, $action) { parent::__construct($app, $module, $action); $this->app()->httpResponse()->addHeader('Content-Type: application/json'); $this->responseContent = new ApiResponse($app, $module, $action); }