/** * * @param clagiordano\weblibs\mvc\Application $application * @return clagiordano\weblibs\mvc\Controller */ public function __construct(Application $application) { $this->application = $application; $this->request = new Request(); $this->application->getRegistry()->requestType = $this->request->getType(); $this->application->getRegistry()->requestData = $this->request->getData(); }