+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
namespace Civi\API\Event;
* @package Civi\API\Event
*/
class Event extends \Symfony\Component\EventDispatcher\Event {
+
+ /**
+ * @var \Civi\API\Kernel
+ */
+ protected $apiKernel;
+
/**
* @var \Civi\API\Provider\ProviderInterface
+ * The API provider responsible for executing the request.
*/
protected $apiProvider;
/**
* @var array
+ * The full description of the API request.
+ *
+ * @see \Civi\API\Request::create
*/
protected $apiRequest;
/**
- * @param $apiProvider
- * @param $apiRequest
+ * @param \Civi\API\Provider\ProviderInterface $apiProvider
+ * The API responsible for executing the request.
+ * @param array $apiRequest
+ * The full description of the API request.
*/
- function __construct($apiProvider, $apiRequest) {
+ public function __construct($apiProvider, $apiRequest, $apiKernel) {
+ $this->apiKernel = $apiKernel;
$this->apiProvider = $apiProvider;
$this->apiRequest = $apiRequest;
}
+ /**
+ * @return \Civi\API\Kernel
+ */
+ public function getApiKernel() {
+ return $this->apiKernel;
+ }
+
/**
* @return \Civi\API\Provider\ProviderInterface
*/
public function getApiRequest() {
return $this->apiRequest;
}
+
}