diff --git a/src/base/Response.php b/src/base/Response.php
index <HASH>..<HASH> 100644
--- a/src/base/Response.php
+++ b/src/base/Response.php
@@ -23,6 +23,15 @@ class Response extends Component
      */
     public $exitStatus = 0;
 
+    /**
+     * @var Application
+     */
+    protected $app;
+
+    public function __construct(Application $app)
+    {
+        $this->app = $app;
+    }
 
     /**
      * Sends the response to client.
Added app with DI to `Response`