Removed deprecated class

This commit is contained in:
Kevin Frantz
2019-03-29 23:35:03 +01:00
parent db2e4dac01
commit 0115751e98
4 changed files with 12 additions and 51 deletions

View File

@@ -1,41 +0,0 @@
<?php
namespace Infinito\DBAL\Types;
use Fresh\DoctrineEnumBundle\DBAL\Types\AbstractEnumType;
use Infinito\Domain\FixtureManagement\FixtureSource\ImpressumFixtureSource;
use Infinito\Domain\FixtureManagement\FixtureSource\GuestUserFixtureSource;
/**
* Containes the system slugs.
*
* @author kevinfrantz
*
* @todo Organize this somehow on an other way
*
* @deprecated
*/
final class SystemSlugType extends AbstractEnumType
{
/**
* @deprecated
* @see ImpressumFixtureSource
*/
public const IMPRINT = 'IMPRINT';
/**
* @deprecated
* @see GuestUserFixtureSource
*/
public const GUEST_USER = 'GUEST_USER';
/**
* @deprecated
*
* @var array
*/
protected static $choices = [
self::IMPRINT => 'imprint',
self::GUEST_USER => 'guest user',
];
}

View File

@@ -58,9 +58,9 @@ class UserMenuSubscriber extends AbstractEntityMenuSubscriber implements EventSu
$menu->addChild($this->trans($slug), [
'route' => self::LAYER_GET_ROUTE,
'routeParameters' => [
'identity' => $slug,
'_format' => RESTResponseType::HTML,
'layer' => LayerType::SOURCE,
LayerController::IDENTITY_PARAMETER_KEY => $slug,
LayerController::FORMAT_PARAMETER_KEY => RESTResponseType::HTML,
LayerController::LAYER_PARAMETER_KEY => LayerType::SOURCE,
],
'attributes' => [
'icon' => $icon,