Civi\API\Event - Pass through the $apiKernel
[civicrm-core.git] / Civi / API / Event / ExceptionEvent.php
index e9f86b4ef41aad1681a1c90d2ab5b6920458ff90..b927f65eb6f39d446073bb3e6817773095f35b6a 100644 (file)
@@ -45,10 +45,12 @@ class ExceptionEvent extends Event {
    *   The API provider responsible for executing the request.
    * @param array $apiRequest
    *   The full description of the API request.
+   * @param \Civi\API\Kernel $apiKernel
+   *   The kernel which fired the event.
    */
-  public function __construct($exception, $apiProvider, $apiRequest) {
+  public function __construct($exception, $apiProvider, $apiRequest, $apiKernel) {
     $this->exception = $exception;
-    parent::__construct($apiProvider, $apiRequest);
+    parent::__construct($apiProvider, $apiRequest, $apiKernel);
   }
 
   /**