Description
Some of our classes have incorrect psr-0 or psr-4 namespaces (file system path does not conform to the namespace). The issue is visible after calling
composer install --optimize-autoloader
e.g. on a meta repository. It generates the following deprecation notice and will fail in Composer 2.0.
Deprecation Notice: Class eZ\Publish\Core\Persistence\Legacy\Tests\Content\UrlAliasHandlerTest located in ./vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Tests/Content/UrlAlias/UrlAliasHandlerTest.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201 (...)
Fortunately those are mostly test classes, but there is a few production code classes, so it needs to be investigated if what they provide works at all.
Side: test classes of dependencies in most cases should not be loaded when installing meta repository. To be solved via EZP-31561.
Affects all maintained versions of the Product. Not all of the issues can be resolved because they also come from 3rd party dependencies, but at least our packages should not cause this.
List of affected classes based on a log from eZ Platform EE clean:
- eZ\Publish\Core\Persistence\Legacy\Tests\Content\UrlAliasHandlerTest
- eZ\Publish\Core\Persistence\Legacy\Tests\Content\Type\UpdateHandler\DoctrineDatabaseTest
- eZ\Publish\Tests\Core\Persistence\Cache\NotificationHandlerTest
- eZ\Publish\Tests\Core\Persistence\Cache\URLHandlerTest
- eZ\Publish\Tests\Core\Persistence\Cache\BookmarkHandlerTest
- eZ\Publish\Tests\Core\Persistence\Cache\UrlWildcardHandlerTest
- eZ\Publish\Core\SignalSlot\Tests\SignalDispatcher\GeneralSlotFactoryTest
- eZ\Publish\Core\FieldType\Tests\MetadataHandler\ImageSizeTest
- eZ\Publish\Core\MVC\Symfony\Matcher\Tests\ContentBased\Matcher\Id\ContentTest
- eZ\Publish\Core\MVC\Symfony\Matcher\Tests\ContentBased\Matcher\Id\ContentTypeTest
- eZ\Publish\Core\MVC\Symfony\Matcher\Tests\ContentBased\Matcher\Id\RemoteTest
- eZ\Publish\Core\MVC\Symfony\Matcher\Tests\ContentBased\Matcher\Id\ContentTypeGroupTest
- eZ\Publish\Core\MVC\Symfony\Matcher\Tests\ContentBased\Matcher\Id\SectionTest
- eZ\Publish\Core\MVC\Symfony\Matcher\Tests\ContentBased\Matcher\Id\ParentContentTypeTest
- eZ\Publish\Core\MVC\Symfony\Matcher\Tests\ContentBased\Matcher\Id\LocationTest
- eZ\Publish\Core\MVC\Symfony\Matcher\Tests\ContentBased\Matcher\Id\ParentLocationTest
- eZ\Publish\Core\MVC\Symfony\Matcher\Tests\ContentBased\Matcher\MultipleValuedTest
- eZ\Publish\Core\MVC\Symfony\Matcher\Tests\ContentBased\Matcher\UrlAliasTest
- eZ\Publish\Core\MVC\Symfony\Matcher\Tests\ContentBased\Matcher\Identifier\ContentTypeTest
- eZ\Publish\Core\MVC\Symfony\Matcher\Tests\ContentBased\Matcher\Identifier\SectionTest
- eZ\Publish\Core\MVC\Symfony\Matcher\Tests\ContentBased\Matcher\Identifier\ParentContentTypeTest
- eZ\Bundle\EzPublishCoreBundle\Tests\RichTextHtml5ConverterPassTest
- EzSystems\EzPlatformPageFieldType\FieldType\Page\Block\Definition\Event\BlockAttributeValidationEvents
- EzSystems\EzPlatformAdminUi\RepositoryForms\Form\Processor\PreviewFormProcessorTest
- EzSystems\EzPlatformAdminUi\UI\Config\Mapper\FieldType\RichText\CustomTagTest
- EzSystems\EzPlatformAdminUiBundle\DependencyInjection\Compiler\UiConfigProviderPassTest
- EzSystems\EzPlatformAdminUiBundle\DependencyInjection\Compiler\TabPassTest
- EzSystems\EzPlatformAdminUiBundle\DependencyInjection\Compiler\ComponentPassTest
- EzSystems\EzPlatformAdminUiBundle\DependencyInjection\Compiler\SystemInfoTabGroupPassTest