Skip to content

Commit d60d939

Browse files
authored
IBX-8139: Dropped class_alias BC layer statements from all classes (#68)
For more details see https://issues.ibexa.co/browse/IBX-8139 and #68 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
1 parent 541e73a commit d60d939

File tree

247 files changed

+2
-499
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+2
-499
lines changed

composer.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@
4141
"Ibexa\\Solr\\": "src/lib/",
4242
"Ibexa\\Bundle\\Solr\\": "src/bundle/",
4343
"Ibexa\\Contracts\\Solr\\": "src/contracts/",
44-
"Ibexa\\Tests\\Solr\\SetupFactory\\": "tests/lib/SetupFactory/",
45-
"EzSystems\\EzPlatformSolrSearchEngine\\": "src/lib/",
46-
"EzSystems\\EzPlatformSolrSearchEngineBundle\\": "src/bundle/",
47-
"EzSystems\\EzPlatformSolrSearchEngine\\Tests\\SetupFactory\\": "tests/lib/SetupFactory/"
44+
"Ibexa\\Tests\\Solr\\SetupFactory\\": "tests/lib/SetupFactory/"
4845
}
4946
},
5047
"autoload-dev": {
@@ -53,9 +50,7 @@
5350
"Ibexa\\Tests\\Solr\\": "tests/lib/",
5451
"Ibexa\\Tests\\Integration\\Core\\": "vendor/ibexa/core/tests/integration/Core/",
5552
"Ibexa\\Tests\\Core\\": "vendor/ibexa/core/tests/lib/",
56-
"Ibexa\\Tests\\Bundle\\Core\\": "vendor/ibexa/core/tests/bundle/",
57-
"EzSystems\\EzPlatformSolrSearchEngine\\Tests\\": "tests/lib/",
58-
"EzSystems\\EzPlatformSolrSearchEngineBundle\\Tests\\": "tests/bundle/"
53+
"Ibexa\\Tests\\Bundle\\Core\\": "vendor/ibexa/core/tests/bundle/"
5954
}
6055
},
6156
"scripts": {

src/bundle/ApiLoader/BoostFactorProviderFactory.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,3 @@ public function buildService()
6969
);
7070
}
7171
}
72-
73-
class_alias(BoostFactorProviderFactory::class, 'EzSystems\EzPlatformSolrSearchEngineBundle\ApiLoader\BoostFactorProviderFactory');

src/bundle/ApiLoader/IndexingDepthProviderFactory.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,3 @@ public function buildService()
6666
);
6767
}
6868
}
69-
70-
class_alias(IndexingDepthProviderFactory::class, 'EzSystems\EzPlatformSolrSearchEngineBundle\ApiLoader\IndexingDepthProviderFactory');

src/bundle/ApiLoader/SolrEngineFactory.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,3 @@ public function buildEngine()
8484
);
8585
}
8686
}
87-
88-
class_alias(SolrEngineFactory::class, 'EzSystems\EzPlatformSolrSearchEngineBundle\ApiLoader\SolrEngineFactory');

src/bundle/DependencyInjection/Configuration.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,5 +419,3 @@ private function addHttpClientConfigurationSection(ArrayNodeDefinition $node): v
419419
->end();
420420
}
421421
}
422-
423-
class_alias(Configuration::class, 'EzSystems\EzPlatformSolrSearchEngineBundle\DependencyInjection\Configuration');

src/bundle/DependencyInjection/IbexaSolrExtension.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,5 +342,3 @@ private function configureHttpClient(ContainerBuilder $container, array $httpCli
342342
);
343343
}
344344
}
345-
346-
class_alias(IbexaSolrExtension::class, 'EzSystems\EzPlatformSolrSearchEngineBundle\DependencyInjection\EzSystemsEzPlatformSolrSearchEngineExtension');

src/bundle/IbexaSolrBundle.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,3 @@ public function getContainerExtension()
4646
return $this->extension;
4747
}
4848
}
49-
50-
class_alias(IbexaSolrBundle::class, 'EzSystems\EzPlatformSolrSearchEngineBundle\EzSystemsEzPlatformSolrSearchEngineBundle');

src/contracts/DocumentMapper.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,3 @@ public function generateContentDocumentId($contentId, $languageCode = null);
7272
*/
7373
public function generateLocationDocumentId($locationId, $languageCode = null);
7474
}
75-
76-
class_alias(DocumentMapper::class, 'EzSystems\EzPlatformSolrSearchEngine\DocumentMapper');

src/contracts/FieldMapper/ContentFieldMapper.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,3 @@ abstract public function accept(SPIContent $content);
3030
*/
3131
abstract public function mapFields(SPIContent $content);
3232
}
33-
34-
class_alias(ContentFieldMapper::class, 'EzSystems\EzPlatformSolrSearchEngine\FieldMapper\ContentFieldMapper');

src/contracts/FieldMapper/ContentTranslationFieldMapper.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,3 @@ abstract public function accept(SPIContent $content, $languageCode);
3535
*/
3636
abstract public function mapFields(SPIContent $content, $languageCode);
3737
}
38-
39-
class_alias(ContentTranslationFieldMapper::class, 'EzSystems\EzPlatformSolrSearchEngine\FieldMapper\ContentTranslationFieldMapper');

0 commit comments

Comments
 (0)