diff --git a/src/LocalData/AbstractLocalDataPostEventSubscriber.php b/src/LocalData/AbstractLocalDataPostEventSubscriber.php index 47f6570d8820314472816fa5d4b5cd543349531a..9000426de303c2fc084814c9a941f43723b522cc 100644 --- a/src/LocalData/AbstractLocalDataPostEventSubscriber.php +++ b/src/LocalData/AbstractLocalDataPostEventSubscriber.php @@ -4,7 +4,9 @@ declare(strict_types=1); namespace Dbp\Relay\CoreBundle\LocalData; +use Dbp\Relay\CoreBundle\API\UserSessionInterface; use Dbp\Relay\CoreBundle\Authorization\AbstractAuthorizationService; +use Dbp\Relay\CoreBundle\Authorization\AuthorizationDataProviderProvider; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\EventDispatcher\EventSubscriberInterface; @@ -18,6 +20,13 @@ abstract class AbstractLocalDataPostEventSubscriber extends AbstractAuthorizatio /** @var string[] */ private $attributeMapping; + public function __construct(UserSessionInterface $userSession, AuthorizationDataProviderProvider $authorizationDataProviderProvider) + { + parent::__construct($userSession, $authorizationDataProviderProvider); + + $this->attributeMapping = []; + } + public function setConfig(array $config) { $configNode = $config[self::CONFIG_NODE] ?? [];