From abd3b8a23b9f5d753ee737c6b4f31746cc228ab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Wed, 21 Jul 2021 14:26:51 +0200 Subject: [PATCH] IBX-538: Added Ibexa namespaces for future compatibility (#3111) For more details see https://github.com/ezsystems/ezpublish-kernel/pull/3111 and https://issues.ibexa.co/browse/IBX-538 Introducing forward compatibility for Ibexa namespaces due to maintenance reasons. All new classes need to be placed in the new namespaces. --- .php_cs | 6 ++++- composer.json | 24 ++++++++++++++++++- src/bundle/Core/.gitkeep | 0 src/bundle/Debug/.gitkeep | 0 src/bundle/IO/.gitkeep | 0 src/bundle/Installer/.gitkeep | 0 src/bundle/LegacySearchEngine/.gitkeep | 0 src/contracts/.gitkeep | 0 src/lib/.gitkeep | 0 tests/bundle/Core/.gitkeep | 0 tests/bundle/Debug/.gitkeep | 0 tests/bundle/IO/.gitkeep | 0 tests/bundle/Installer/.gitkeep | 0 tests/bundle/LegacySearchEngine/.gitkeep | 0 tests/integration/Core/.gitkeep | 0 tests/integration/Debug/.gitkeep | 0 tests/integration/IO/.gitkeep | 0 tests/integration/Installer/.gitkeep | 0 tests/integration/LegacySearchEngine/.gitkeep | 0 tests/lib/.gitkeep | 0 20 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 src/bundle/Core/.gitkeep create mode 100644 src/bundle/Debug/.gitkeep create mode 100644 src/bundle/IO/.gitkeep create mode 100644 src/bundle/Installer/.gitkeep create mode 100644 src/bundle/LegacySearchEngine/.gitkeep create mode 100644 src/contracts/.gitkeep create mode 100644 src/lib/.gitkeep create mode 100644 tests/bundle/Core/.gitkeep create mode 100644 tests/bundle/Debug/.gitkeep create mode 100644 tests/bundle/IO/.gitkeep create mode 100644 tests/bundle/Installer/.gitkeep create mode 100644 tests/bundle/LegacySearchEngine/.gitkeep create mode 100644 tests/integration/Core/.gitkeep create mode 100644 tests/integration/Debug/.gitkeep create mode 100644 tests/integration/IO/.gitkeep create mode 100644 tests/integration/Installer/.gitkeep create mode 100644 tests/integration/LegacySearchEngine/.gitkeep create mode 100644 tests/lib/.gitkeep diff --git a/.php_cs b/.php_cs index e5e5a6f2fc..76994833a9 100644 --- a/.php_cs +++ b/.php_cs @@ -3,7 +3,11 @@ return EzSystems\EzPlatformCodeStyle\PhpCsFixer\EzPlatformInternalConfigFactory::build() ->setFinder( PhpCsFixer\Finder::create() - ->in([__DIR__ . '/eZ']) + ->in([ + __DIR__ . '/eZ', + __DIR__ . '/src', + __DIR__ . '/tests', + ]) ->exclude( [ 'Bundle/EzPublishCoreBundle/Tests/DependencyInjection/Fixtures', diff --git a/composer.json b/composer.json index 07b83b55e8..fc17a8d768 100644 --- a/composer.json +++ b/composer.json @@ -62,12 +62,34 @@ "autoload": { "psr-4": { "EzSystems\\PlatformInstallerBundle\\": "eZ/Bundle/PlatformInstallerBundle/src", - "EzSystems\\PlatformBehatBundle\\": "eZ/Bundle/PlatformBehatBundle" + "EzSystems\\PlatformBehatBundle\\": "eZ/Bundle/PlatformBehatBundle", + "Ibexa\\Bundle\\Core\\": "src/bundle/Core", + "Ibexa\\Bundle\\Debug\\": "src/bundle/Debug", + "Ibexa\\Bundle\\IO\\": "src/bundle/IO", + "Ibexa\\Bundle\\Installer\\": "src/bundle/Installer", + "Ibexa\\Bundle\\LegacySearchEngine\\": "src/bundle/LegacySearchEngine", + "Ibexa\\Contracts\\Core\\": "src/contracts", + "Ibexa\\Core\\": "src/lib" }, "psr-0": { "eZ": "" } }, + "autoload-dev": { + "psr-4": { + "Ibexa\\Tests\\Bundle\\Core\\": "tests/bundle/Core", + "Ibexa\\Tests\\Bundle\\Debug\\": "tests/bundle/Debug", + "Ibexa\\Tests\\Bundle\\IO\\": "tests/bundle/IO", + "Ibexa\\Tests\\Bundle\\Installer\\": "tests/bundle/Installer", + "Ibexa\\Tests\\Bundle\\LegacySearchEngine\\": "tests/bundle/LegacySearchEngine", + "Ibexa\\Tests\\Integration\\Core\\": "tests/integration/Core", + "Ibexa\\Tests\\Integration\\Debug\\": "tests/integration/Debug", + "Ibexa\\Tests\\Integration\\IO\\": "tests/integration/IO", + "Ibexa\\Tests\\Integration\\Installer\\": "tests/integration/Installer", + "Ibexa\\Tests\\Integration\\LegacySearchEngine\\": "tests/integration/LegacySearchEngine", + "Ibexa\\Tests\\Core\\": "tests/lib" + } + }, "config": { "process-timeout": 3000, "platform": { diff --git a/src/bundle/Core/.gitkeep b/src/bundle/Core/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/bundle/Debug/.gitkeep b/src/bundle/Debug/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/bundle/IO/.gitkeep b/src/bundle/IO/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/bundle/Installer/.gitkeep b/src/bundle/Installer/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/bundle/LegacySearchEngine/.gitkeep b/src/bundle/LegacySearchEngine/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/contracts/.gitkeep b/src/contracts/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/lib/.gitkeep b/src/lib/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/bundle/Core/.gitkeep b/tests/bundle/Core/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/bundle/Debug/.gitkeep b/tests/bundle/Debug/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/bundle/IO/.gitkeep b/tests/bundle/IO/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/bundle/Installer/.gitkeep b/tests/bundle/Installer/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/bundle/LegacySearchEngine/.gitkeep b/tests/bundle/LegacySearchEngine/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/integration/Core/.gitkeep b/tests/integration/Core/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/integration/Debug/.gitkeep b/tests/integration/Debug/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/integration/IO/.gitkeep b/tests/integration/IO/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/integration/Installer/.gitkeep b/tests/integration/Installer/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/integration/LegacySearchEngine/.gitkeep b/tests/integration/LegacySearchEngine/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/lib/.gitkeep b/tests/lib/.gitkeep new file mode 100644 index 0000000000..e69de29bb2