/** * BaseController constructor. * @param Application $application */ public function __construct(Application $application) { $this->application = $application; $this->setPathBound($application->basePath()); $this->router = $application->getRouter(); $this->request = $application->getRequest(); $this->POST = $this->request->POST(); $this->GET = $this->request->GET(); $this->method = $this->request->getHttpMethod(); $this->baseInit(); }