|
|
|
@ -27,6 +27,20 @@ class StompHeaderEvent implements StompHeaderEventInterface {
|
|
|
|
|
*/ |
|
|
|
|
protected $user; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* An array of data to be sent with the STOMP request, for context. |
|
|
|
|
* |
|
|
|
|
* @var array |
|
|
|
|
*/ |
|
|
|
|
protected $data; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* An array of configuration used to generate $data, for context. |
|
|
|
|
* |
|
|
|
|
* @var array |
|
|
|
|
*/ |
|
|
|
|
protected $configuration; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The set of headers. |
|
|
|
|
* |
|
|
|
@ -37,9 +51,11 @@ class StompHeaderEvent implements StompHeaderEventInterface {
|
|
|
|
|
/** |
|
|
|
|
* Constructor. |
|
|
|
|
*/ |
|
|
|
|
public function __construct(EntityInterface $entity, AccountInterface $user) { |
|
|
|
|
public function __construct(EntityInterface $entity, AccountInterface $user, array $data, array $configuration) { |
|
|
|
|
$this->entity = $entity; |
|
|
|
|
$this->user = $user; |
|
|
|
|
$this->data = $data; |
|
|
|
|
$this->configuration = $configuration; |
|
|
|
|
$this->headers = new ParameterBag(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -57,6 +73,13 @@ class StompHeaderEvent implements StompHeaderEventInterface {
|
|
|
|
|
return $this->user; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* {@inheritdoc} |
|
|
|
|
*/ |
|
|
|
|
public function getData() { |
|
|
|
|
return $this->data; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* {@inheritdoc} |
|
|
|
|
*/ |
|
|
|
@ -64,4 +87,11 @@ class StompHeaderEvent implements StompHeaderEventInterface {
|
|
|
|
|
return $this->headers; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* {@inheritdoc} |
|
|
|
|
*/ |
|
|
|
|
public function getConfiguration() { |
|
|
|
|
return $this->configuration; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|