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 1596b9e
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);
Expand All @@ -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 1596b9e

Please sign in to comment.