forked from bankiru/rpc-server-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RpcEvent.php
43 lines (37 loc) · 881 Bytes
/
RpcEvent.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
namespace Bankiru\Api\Rpc;
use Bankiru\Api\Rpc\Http\RequestInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\HttpKernel\HttpKernelInterface;
class RpcEvent extends Event
{
/** @var HttpKernelInterface */
private $kernel;
/** @var RequestInterface */
private $request;
/**
* RpcEvent constructor.
*
* @param HttpKernelInterface $kernel
* @param RequestInterface $request
*/
public function __construct(HttpKernelInterface $kernel, RequestInterface $request)
{
$this->kernel = $kernel;
$this->request = $request;
}
/**
* @return HttpKernelInterface
*/
public function getKernel()
{
return $this->kernel;
}
/**
* @return RequestInterface
*/
public function getRequest()
{
return $this->request;
}
}