Avoid CiviCRM running full drupal cache flush, as this results in CiviCRM clobbering...
[civicrm-core.git] / Civi / API / Event / ResolveEvent.php
index c62d40751aaec73faf1c412428cda6078884764c..299db7b52581bdddecc9d87cd73bf13bd7ba6ea5 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 namespace Civi\API\Event;
 
@@ -33,14 +33,18 @@ namespace Civi\API\Event;
  */
 class ResolveEvent extends Event {
   /**
-   * @param $apiRequest
+   * @param array $apiRequest
+   *   The full description of the API request.
+   * @param \Civi\API\Kernel $apiKernel
+   *   The kernel which fired the event.
    */
-  function __construct($apiRequest) {
-    parent::__construct(NULL, $apiRequest);
+  public function __construct($apiRequest, $apiKernel) {
+    parent::__construct(NULL, $apiRequest, $apiKernel);
   }
 
   /**
    * @param \Civi\API\Provider\ProviderInterface $apiProvider
+   *   The API provider responsible for executing the request.
    */
   public function setApiProvider($apiProvider) {
     $this->apiProvider = $apiProvider;
@@ -48,8 +52,10 @@ class ResolveEvent extends Event {
 
   /**
    * @param array $apiRequest
+   *   The full description of the API request.
    */
   public function setApiRequest($apiRequest) {
     $this->apiRequest = $apiRequest;
   }
+
 }