diff --git a/composer.lock b/composer.lock index 0c9cefb656c33d1ee8001469605ec5e761b46b0d..5448e20e61172ae9737c8d07b3689b06e0579b01 100644 --- a/composer.lock +++ b/composer.lock @@ -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" } diff --git a/src/Event/PersonProviderPostEvent.php b/src/Event/PersonProviderPostEvent.php index c4a7e90969aa0540f5cd222c255478a7f5c456b6..23877d44f57893c1a6f341961e78e35ae8e6c5dd 100644 --- a/src/Event/PersonProviderPostEvent.php +++ b/src/Event/PersonProviderPostEvent.php @@ -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; - } }