X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FAPI%2FEvent%2FEvent.php;h=2a0e1130114ce3d12bae53e4628d4f88ff013d67;hb=0bf833793b22eb6ab5a6006a3d693c35f31e2431;hp=0110a00636e7afaba222b6c4b97d0dc1ccfd5895;hpb=a733f50a96419749b5f5ebee962d7721164d36cf;p=civicrm-core.git diff --git a/Civi/API/Event/Event.php b/Civi/API/Event/Event.php index 0110a00636..2a0e113011 100644 --- a/Civi/API/Event/Event.php +++ b/Civi/API/Event/Event.php @@ -32,6 +32,12 @@ 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. @@ -52,11 +58,19 @@ class Event extends \Symfony\Component\EventDispatcher\Event { * @param array $apiRequest * The full description of the API request. */ - public 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 */