Skip to content
Snippets Groups Projects
Commit 8d145411 authored by Tobias Gross-Vogt's avatar Tobias Gross-Vogt
Browse files

person provider post event

parent 55c8fbda
No related branches found
No related tags found
No related merge requests found
Pipeline #211197 passed
......@@ -169,17 +169,11 @@
},
{
"name": "dbp/relay-core-bundle",
"version": "v0.1.61",
"version": "v0.1.63",
"source": {
"type": "git",
"url": "https://gitlab.tugraz.at/dbp/relay/dbp-relay-core-bundle.git",
"reference": "996fc7d43361720e3749401fd0f005ed3d97404b"
},
"dist": {
"type": "zip",
"url": "https://gitlab.tugraz.at/api/v4/projects/dbp%2Frelay%2Fdbp-relay-core-bundle/repository/archive.zip?sha=996fc7d43361720e3749401fd0f005ed3d97404b",
"reference": "996fc7d43361720e3749401fd0f005ed3d97404b",
"shasum": ""
"url": "git@gitlab.tugraz.at:dbp/relay/dbp-relay-core-bundle.git",
"reference": "3c696f31a84b65cec38a975d4adaf64e3bc2fdcb"
},
"require": {
"api-platform/core": "^2.6.8 <2.7.0",
......@@ -278,11 +272,7 @@
"AGPL-3.0-or-later"
],
"description": "The core bundle of the Relay API gateway",
"support": {
"source": "https://gitlab.tugraz.at/dbp/relay/dbp-relay-core-bundle/-/tree/v0.1.61",
"issues": "https://gitlab.tugraz.at/dbp/relay/dbp-relay-core-bundle/-/issues"
},
"time": "2022-11-23T13:35:13+01:00"
"time": "2022-11-30T12:11:21+00:00"
},
{
"name": "doctrine/annotations",
......@@ -10088,5 +10078,5 @@
"platform-overrides": {
"php": "7.3"
},
"plugin-api-version": "2.3.0"
"plugin-api-version": "2.2.0"
}
......@@ -4,34 +4,9 @@ declare(strict_types=1);
namespace Dbp\Relay\BasePersonBundle\Event;
use Dbp\Relay\BasePersonBundle\Entity\Person;
use Dbp\Relay\CoreBundle\LocalData\LocalDataAwarePostEvent;
use Dbp\Relay\CoreBundle\LocalData\LocalDataPostEvent;
class PersonProviderPostEvent extends LocalDataAwarePostEvent
class PersonProviderPostEvent extends LocalDataPostEvent
{
public const NAME = 'dbp.relay.base_person_bundle.person_provider.post';
/** @var array */
private $sourceData;
/** @var Person */
private $person;
public function __construct(array $sourceData, Person $person)
{
parent::__construct($person);
$this->sourceData = $sourceData;
$this->person = $person;
}
public function getEntity(): Person
{
return $this->person;
}
public function getSourceData(): array
{
return $this->sourceData;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment