Skip to content

Commit

Permalink
IBX-8139: Dropped class_alias BC layer statements from all classes (#161
Browse files Browse the repository at this point in the history
)

For more details see https://issues.ibexa.co/browse/IBX-8139 and #161

Key changes:

* Dropped class_alias BC layer from production code

* Dropped class_alias BC layer from test code

* [Composer] Dropped legacy namespaces from autoload section
  • Loading branch information
alongosz authored Jun 5, 2024
1 parent ed5d1d3 commit ddc118f
Show file tree
Hide file tree
Showing 109 changed files with 1 addition and 219 deletions.
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@
"Ibexa\\FieldTypeRichText\\": "src/lib/",
"Ibexa\\Contracts\\FieldTypeRichText\\": "src/contracts/",
"Ibexa\\Bundle\\FieldTypeRichText\\": "src/bundle/",
"Ibexa\\Tests\\FieldTypeRichText\\": "tests/lib/",
"EzSystems\\EzPlatformRichTextBundle\\": "src/bundle",
"EzSystems\\EzPlatformRichText\\": "src/lib"
"Ibexa\\Tests\\FieldTypeRichText\\": "tests/lib/"
}
},
"autoload-dev": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,3 @@ protected function sortConverters(array $convertersByPriority)
return array_merge(...$convertersByPriority);
}
}

class_alias(RichTextHtml5ConverterPass::class, 'EzSystems\EzPlatformRichTextBundle\DependencyInjection\Compiler\RichTextHtml5ConverterPass');
2 changes: 0 additions & 2 deletions src/bundle/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,5 +214,3 @@ private function addAlloyEditorSection(NodeBuilder $ezRichTextNode)
;
}
}

class_alias(Configuration::class, 'EzSystems\EzPlatformRichTextBundle\DependencyInjection\Configuration');
Original file line number Diff line number Diff line change
Expand Up @@ -425,5 +425,3 @@ private function getAttributesValidatorCallback(callable $invalidChoiceCallback)
};
}
}

class_alias(RichText::class, 'EzSystems\EzPlatformRichTextBundle\DependencyInjection\Configuration\Parser\FieldType\RichText');
Original file line number Diff line number Diff line change
Expand Up @@ -309,5 +309,3 @@ private function checkForInlineTagsInToolbar(
}
}
}

class_alias(IbexaFieldTypeRichTextExtension::class, 'EzSystems\EzPlatformRichTextBundle\DependencyInjection\EzPlatformRichTextExtension');
2 changes: 0 additions & 2 deletions src/bundle/IbexaFieldTypeRichTextBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,3 @@ public function getContainerExtension()
return $this->extension;
}
}

class_alias(IbexaFieldTypeRichTextBundle::class, 'EzSystems\EzPlatformRichTextBundle\EzPlatformRichTextBundle');
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,3 @@ public function getGlobals(): array
];
}
}

class_alias(RichTextConfigurationExtension::class, 'EzSystems\EzPlatformRichTextBundle\Templating\Twig\Extension\RichTextConfigurationExtension');
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,3 @@ public function richTextToHtml5Edit(DOMDocument $xmlData): string
return $this->richTextEditConverter->convert($xmlData)->saveHTML() ?: '';
}
}

class_alias(RichTextConverterExtension::class, 'EzSystems\EzPlatformRichTextBundle\Templating\Twig\Extension\RichTextConverterExtension');
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,3 @@ public function extractId(string $string): ?string
return $matches['id'] ?? null;
}
}

class_alias(YoutubeIdExtractorExtension::class, 'EzSystems\EzPlatformRichTextBundle\Templating\Twig\Extension\YoutubeIdExtractorExtension');
2 changes: 0 additions & 2 deletions src/contracts/Configuration/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,3 @@ public function getName(): string;
*/
public function getConfiguration(): array;
}

class_alias(Provider::class, 'EzSystems\EzPlatformRichText\SPI\Configuration\Provider');
2 changes: 0 additions & 2 deletions src/contracts/Configuration/ProviderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ interface ProviderService
*/
public function getConfiguration(): array;
}

class_alias(ProviderService::class, 'EzSystems\EzPlatformRichText\API\Configuration\ProviderService');
2 changes: 0 additions & 2 deletions src/contracts/RichText/Converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,3 @@ interface Converter
*/
public function convert(DOMDocument $xmlDoc);
}

class_alias(Converter::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Converter');
2 changes: 0 additions & 2 deletions src/contracts/RichText/InputHandlerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,3 @@ public function getRelations(DOMDocument $document): array;
*/
public function validate(DOMDocument $document): array;
}

class_alias(InputHandlerInterface::class, 'EzSystems\EzPlatformRichText\eZ\RichText\InputHandlerInterface');
2 changes: 0 additions & 2 deletions src/contracts/RichText/RendererInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,3 @@ public function renderContentEmbed($contentId, $viewType, array $parameters, $is
*/
public function renderLocationEmbed($locationId, $viewType, array $parameters, $isInline);
}

class_alias(RendererInterface::class, 'EzSystems\EzPlatformRichText\eZ\RichText\RendererInterface');
2 changes: 0 additions & 2 deletions src/contracts/RichText/ValidatorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@ interface ValidatorInterface
*/
public function validateDocument(DOMDocument $xmlDocument): array;
}

class_alias(ValidatorInterface::class, 'EzSystems\EzPlatformRichText\eZ\RichText\ValidatorInterface');
2 changes: 0 additions & 2 deletions src/lib/Configuration/AggregateProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,3 @@ public function getConfiguration(): array
return $configuration;
}
}

class_alias(AggregateProvider::class, 'EzSystems\EzPlatformRichText\Configuration\AggregateProvider');
2 changes: 0 additions & 2 deletions src/lib/Configuration/Provider/AlloyEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,3 @@ private function getSiteAccessConfigArray(string $paramName): array
: [];
}
}

class_alias(AlloyEditor::class, 'EzSystems\EzPlatformRichText\Configuration\Provider\AlloyEditor');
2 changes: 0 additions & 2 deletions src/lib/Configuration/Provider/CKEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,3 @@ private function getSiteAccessConfigArray(string $paramName): array
: [];
}
}

class_alias(CKEditor::class, 'EzSystems\EzPlatformRichText\Configuration\Provider\CKEditor');
2 changes: 0 additions & 2 deletions src/lib/Configuration/Provider/CustomStyle.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,3 @@ public function getConfiguration(): array
return [];
}
}

class_alias(CustomStyle::class, 'EzSystems\EzPlatformRichText\Configuration\Provider\CustomStyle');
2 changes: 0 additions & 2 deletions src/lib/Configuration/Provider/CustomTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,3 @@ public function getConfiguration(): array
return [];
}
}

class_alias(CustomTag::class, 'EzSystems\EzPlatformRichText\Configuration\Provider\CustomTag');
2 changes: 0 additions & 2 deletions src/lib/Configuration/UI/Mapper/CustomStyle.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,3 @@ public function mapConfig(array $enabledCustomStyles): array
return $config;
}
}

class_alias(CustomStyle::class, 'EzSystems\EzPlatformRichText\Configuration\UI\Mapper\CustomStyle');
2 changes: 0 additions & 2 deletions src/lib/Configuration/UI/Mapper/CustomTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,3 @@ private function translateLabels(array $config): array
return $config;
}
}

class_alias(CustomTag::class, 'EzSystems\EzPlatformRichText\Configuration\UI\Mapper\CustomTag');
2 changes: 0 additions & 2 deletions src/lib/Configuration/UI/Mapper/CustomTag/AttributeMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@ public function mapConfig(
array $customTagAttributeProperties
): array;
}

class_alias(AttributeMapper::class, 'EzSystems\EzPlatformRichText\Configuration\UI\Mapper\CustomTag\AttributeMapper');
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,3 @@ public function mapConfig(
return $parentConfig;
}
}

class_alias(ChoiceAttributeMapper::class, 'EzSystems\EzPlatformRichText\Configuration\UI\Mapper\CustomTag\ChoiceAttributeMapper');
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@ public function mapConfig(
];
}
}

class_alias(CommonAttributeMapper::class, 'EzSystems\EzPlatformRichText\Configuration\UI\Mapper\CustomTag\CommonAttributeMapper');
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ interface CustomTemplateConfigMapper
{
public function mapConfig(array $enabledCustomTemplates): array;
}

class_alias(CustomTemplateConfigMapper::class, 'EzSystems\EzPlatformRichText\Configuration\UI\Mapper\CustomTemplateConfigMapper');
2 changes: 0 additions & 2 deletions src/lib/Configuration/UI/Mapper/OnlineEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,3 @@ public function mapDataAttributesConfiguration(array $semanticConfiguration): ar
return $configuration;
}
}

class_alias(OnlineEditor::class, 'EzSystems\EzPlatformRichText\Configuration\UI\Mapper\OnlineEditor');
2 changes: 0 additions & 2 deletions src/lib/Configuration/UI/Mapper/OnlineEditorConfigMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,3 @@ public function mapCssClassesConfiguration(array $semanticSemanticConfiguration)
*/
public function mapDataAttributesConfiguration(array $semanticConfiguration): array;
}

class_alias(OnlineEditorConfigMapper::class, 'EzSystems\EzPlatformRichText\Configuration\UI\Mapper\OnlineEditorConfigMapper');
2 changes: 0 additions & 2 deletions src/lib/FieldType/RichText/RichTextStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,5 +207,3 @@ public function getIndexData(VersionInfo $versionInfo, Field $field, array $cont
{
}
}

class_alias(RichTextStorage::class, 'EzSystems\EzPlatformRichText\eZ\FieldType\RichText\RichTextStorage');
2 changes: 0 additions & 2 deletions src/lib/FieldType/RichText/RichTextStorage/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,3 @@ public function unlinkUrl($fieldId, $versionNo, array $excludeUrlIds = [])
$this->urlGateway->unlinkUrl($fieldId, $versionNo, $excludeUrlIds);
}
}

class_alias(Gateway::class, 'EzSystems\EzPlatformRichText\eZ\FieldType\RichText\RichTextStorage\Gateway');
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,3 @@ public function getContentIds(array $remoteIds)
return $objectRemoteIdMap;
}
}

class_alias(DoctrineStorage::class, 'EzSystems\EzPlatformRichText\eZ\FieldType\RichText\RichTextStorage\Gateway\DoctrineStorage');
2 changes: 0 additions & 2 deletions src/lib/FieldType/RichText/SearchField.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,3 @@ public function getDefaultSortField()
return $this->getDefaultMatchField();
}
}

class_alias(SearchField::class, 'EzSystems\EzPlatformRichText\eZ\FieldType\RichText\SearchField');
2 changes: 0 additions & 2 deletions src/lib/FieldType/RichText/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,5 +297,3 @@ public static function getTranslationMessages(): array
];
}
}

class_alias(Type::class, 'EzSystems\EzPlatformRichText\eZ\FieldType\RichText\Type');
2 changes: 0 additions & 2 deletions src/lib/FieldType/RichText/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,3 @@ public function __toString()
return isset($this->xml) ? (string)$this->xml->saveXML() : self::EMPTY_VALUE;
}
}

class_alias(Value::class, 'EzSystems\EzPlatformRichText\eZ\FieldType\RichText\Value');
2 changes: 0 additions & 2 deletions src/lib/Form/DataTransformer/RichTextTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,3 @@ public function reverseTransform($value): string
}
}
}

class_alias(RichTextTransformer::class, 'EzSystems\EzPlatformRichText\Form\DataTransformer\RichTextTransformer');
2 changes: 0 additions & 2 deletions src/lib/Form/DataTransformer/RichTextValueTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,3 @@ public function reverseTransform($value)
return $this->fieldType->fromHash(['xml' => $value]);
}
}

class_alias(RichTextValueTransformer::class, 'EzSystems\EzPlatformRichText\Form\DataTransformer\RichTextValueTransformer');
2 changes: 0 additions & 2 deletions src/lib/Form/Mapper/RichTextFormMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,3 @@ public function configureOptions(OptionsResolver $resolver)
]);
}
}

class_alias(RichTextFormMapper::class, 'EzSystems\EzPlatformRichText\Form\Mapper\RichTextFormMapper');
2 changes: 0 additions & 2 deletions src/lib/Form/Type/RichTextFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,3 @@ public function buildForm(FormBuilderInterface $builder, array $options)
));
}
}

class_alias(RichTextFieldType::class, 'EzSystems\EzPlatformRichText\Form\Type\RichTextFieldType');
2 changes: 0 additions & 2 deletions src/lib/Form/Type/RichTextType.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,3 @@ public function getBlockPrefix(): string
return 'richtext';
}
}

class_alias(RichTextType::class, 'EzSystems\EzPlatformRichText\Form\Type\RichTextType');
2 changes: 0 additions & 2 deletions src/lib/Persistence/Legacy/RichTextFieldValueConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,3 @@ public function getIndexColumn()
return 'sort_key_string';
}
}

class_alias(RichTextFieldValueConverter::class, 'EzSystems\EzPlatformRichText\eZ\Persistence\Legacy\RichTextFieldValueConverter');
2 changes: 0 additions & 2 deletions src/lib/REST/FieldTypeProcessor/RichTextProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@ public function postProcessValueHash($outgoingValueHash)
return $outgoingValueHash;
}
}

class_alias(RichTextProcessor::class, 'EzSystems\EzPlatformRichText\eZ\REST\FieldTypeProcessor\RichTextProcessor');
2 changes: 0 additions & 2 deletions src/lib/RichText/Converter/Aggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,3 @@ public function addConverter(Converter $converter): void
$this->converters[] = $converter;
}
}

class_alias(Aggregate::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Converter\Aggregate');
2 changes: 0 additions & 2 deletions src/lib/RichText/Converter/Html5.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ public function __construct($stylesheet, ConfigResolverInterface $configResolver
parent::__construct($stylesheet, $customStylesheets);
}
}

class_alias(Html5::class, 'EzSystems\EzPlatformRichTextBundle\eZ\RichText\Converter\Html5');
2 changes: 0 additions & 2 deletions src/lib/RichText/Converter/Html5Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ public function __construct($stylesheet, ConfigResolverInterface $configResolver
parent::__construct($stylesheet, $customStylesheets);
}
}

class_alias(Html5Edit::class, 'EzSystems\EzPlatformRichTextBundle\eZ\RichText\Converter\Html5Edit');
2 changes: 0 additions & 2 deletions src/lib/RichText/Converter/Html5Input.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ public function __construct($stylesheet, ConfigResolverInterface $configResolver
parent::__construct($stylesheet, $customStylesheets);
}
}

class_alias(Html5Input::class, 'EzSystems\EzPlatformRichTextBundle\eZ\RichText\Converter\Html5Input');
2 changes: 0 additions & 2 deletions src/lib/RichText/Converter/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,3 @@ private function generateUrlAliasForLocation(Location $location, string $fragmen
return $urlAlias . $fragment;
}
}

class_alias(Link::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Converter\Link');
2 changes: 0 additions & 2 deletions src/lib/RichText/Converter/ProgramListing.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,3 @@ public function convert(DOMDocument $document)
return $document;
}
}

class_alias(ProgramListing::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Converter\ProgramListing');
2 changes: 0 additions & 2 deletions src/lib/RichText/Converter/Render.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,3 @@ protected function extractHash(DOMNode $configHash)
return $hash;
}
}

class_alias(Render::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Converter\Render');
2 changes: 0 additions & 2 deletions src/lib/RichText/Converter/Render/Embed.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,5 +340,3 @@ private function extractCustomDataAttributes(DOMDocument $document, DOMNode $emb
return $dataAttributes;
}
}

class_alias(Embed::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Converter\Render\Embed');
2 changes: 0 additions & 2 deletions src/lib/RichText/Converter/Render/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,5 +194,3 @@ private function wrapContentWithLiteralLayout(DOMNode $rootNode, DOMNode $node):
return $rootNode->appendChild($literalLayoutNode);
}
}

class_alias(Template::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Converter\Render\Template');
2 changes: 0 additions & 2 deletions src/lib/RichText/Converter/Xslt.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,3 @@ public function convert(DOMDocument $document)
return $document;
}
}

class_alias(Xslt::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Converter\Xslt');
2 changes: 0 additions & 2 deletions src/lib/RichText/ConverterDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,3 @@ public function dispatch(DOMDocument $document)
throw new NotFoundException('Converter', $documentNamespace);
}
}

class_alias(ConverterDispatcher::class, 'EzSystems\EzPlatformRichText\eZ\RichText\ConverterDispatcher');
2 changes: 0 additions & 2 deletions src/lib/RichText/DOMDocumentFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,3 @@ public function loadXMLString(string $xmlString): DOMDocument
return $document;
}
}

class_alias(DOMDocumentFactory::class, 'EzSystems\EzPlatformRichText\eZ\RichText\DOMDocumentFactory');
2 changes: 0 additions & 2 deletions src/lib/RichText/Exception/InvalidXmlException.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,3 @@ public function getErrors(): array
return $this->errors;
}
}

class_alias(InvalidXmlException::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Exception\InvalidXmlException');
2 changes: 0 additions & 2 deletions src/lib/RichText/InputHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,3 @@ public function validate(DOMDocument $document): array
return $this->docbookValidator->validateDocument($document);
}
}

class_alias(InputHandler::class, 'EzSystems\EzPlatformRichText\eZ\RichText\InputHandler');
2 changes: 0 additions & 2 deletions src/lib/RichText/Normalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ abstract public function accept($input);
*/
abstract public function normalize($input);
}

class_alias(Normalizer::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Normalizer');
2 changes: 0 additions & 2 deletions src/lib/RichText/Normalizer/Aggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,3 @@ public function normalize($input)
return $input;
}
}

class_alias(Aggregate::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Normalizer\Aggregate');
2 changes: 0 additions & 2 deletions src/lib/RichText/Normalizer/DocumentTypeDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,3 @@ private function getExpression()
return $this->expression;
}
}

class_alias(DocumentTypeDefinition::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Normalizer\DocumentTypeDefinition');
2 changes: 0 additions & 2 deletions src/lib/RichText/RelationProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,3 @@ private function getRelatedObjectIds(DOMDocument $xml, array $tagNames): array
];
}
}

class_alias(RelationProcessor::class, 'EzSystems\EzPlatformRichText\eZ\RichText\RelationProcessor');
2 changes: 0 additions & 2 deletions src/lib/RichText/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,5 +487,3 @@ static function (Repository $repository) use ($id) {
return $location;
}
}

class_alias(Renderer::class, 'EzSystems\EzPlatformRichTextBundle\eZ\RichText\Renderer');
2 changes: 0 additions & 2 deletions src/lib/RichText/Validator/CustomTagsValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,3 @@ public function validateDocument(DOMDocument $xmlDocument): array
return $errors;
}
}

class_alias(CustomTagsValidator::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Validator\CustomTagsValidator');
2 changes: 0 additions & 2 deletions src/lib/RichText/Validator/InternalLinkValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,3 @@ private function getXPathForLinkTag($tagName)
return "//docbook:{$tagName}[starts-with(@xlink:href, 'ezcontent://') or starts-with(@xlink:href, 'ezlocation://') or starts-with(@xlink:href, 'ezremote://')]";
}
}

class_alias(InternalLinkValidator::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Validator\InternalLinkValidator');
2 changes: 0 additions & 2 deletions src/lib/RichText/Validator/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,3 @@ protected function formatSVRLFailure(DOMElement $failedAssert)
return (strlen($location) ? $location . ': ' : '') . $failedAssert->textContent;
}
}

class_alias(Validator::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Validator\Validator');
2 changes: 0 additions & 2 deletions src/lib/RichText/Validator/ValidatorAggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,3 @@ public function validateDocument(DOMDocument $xmlDocument): array
return $validationErrors;
}
}

class_alias(ValidatorAggregate::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Validator\ValidatorAggregate');
2 changes: 0 additions & 2 deletions src/lib/RichText/Validator/ValidatorDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,3 @@ public function validateDocument(DOMDocument $xmlDocument): array
return $this->dispatch($xmlDocument);
}
}

class_alias(ValidatorDispatcher::class, 'EzSystems\EzPlatformRichText\eZ\RichText\Validator\ValidatorDispatcher');
Loading

0 comments on commit ddc118f

Please sign in to comment.