Skip to content

Commit

Permalink
Fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Mar 2, 2021
1 parent 9b6c7a5 commit 66822f2
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,18 @@ class ImageAssetAllowedContentTypes implements EventSubscriberInterface
/** @var \eZ\Publish\Core\FieldType\ImageAsset\AssetMapper */
private $assetMapper;

/**
* @param \eZ\Publish\Core\FieldType\ImageAsset\AssetMapper $assetMapper
*/
public function __construct(AssetMapper $assetMapper)
{
$this->assetMapper = $assetMapper;
}

/**
* @return array
*/
public static function getSubscribedEvents(): array
{
return [
ConfigResolveEvent::NAME => ['onUdwConfigResolve'],
];
}

/**
* @param \EzSystems\EzPlatformAdminUi\UniversalDiscovery\Event\ConfigResolveEvent $event
*/
public function onUdwConfigResolve(ConfigResolveEvent $event): void
{
if ($event->getConfigName() !== 'image_asset') {
Expand Down

0 comments on commit 66822f2

Please sign in to comment.