Issue #2919215 by alexpott, longwave, dawehner: Deprecate feed.bridge.writer

merge-requests/1621/merge
catch 2022-01-14 11:58:07 +00:00
parent 24893484e1
commit a0e1956f5b
2 changed files with 9 additions and 0 deletions

View File

@ -1449,6 +1449,7 @@ services:
- [setContainer, ['@service_container']] - [setContainer, ['@service_container']]
- [setStandalone, ['\Laminas\Feed\Writer\StandaloneExtensionManager']] - [setStandalone, ['\Laminas\Feed\Writer\StandaloneExtensionManager']]
arguments: ['feed.writer.'] arguments: ['feed.writer.']
deprecated: The "%service_id%" service is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. Use \Laminas\Feed\Writer\StandaloneExtensionManager or create your own service. See https://www.drupal.org/node/3258440
# Laminas Feed reader plugins. Plugin instances should not be shared. # Laminas Feed reader plugins. Plugin instances should not be shared.
feed.reader.dublincoreentry: feed.reader.dublincoreentry:
class: Laminas\Feed\Reader\Extension\DublinCore\Entry class: Laminas\Feed\Reader\Extension\DublinCore\Entry

View File

@ -41,6 +41,14 @@ class LegacyServiceTest extends KernelTestBase {
$this->assertIsObject($this->container->get($service)); $this->assertIsObject($this->container->get($service));
} }
/**
* Tests the deprecated Laminas bridge service.
*/
public function testLaminasBridgeService() {
$this->expectDeprecation("The \"feed.bridge.writer\" service is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. Use \Laminas\Feed\Writer\StandaloneExtensionManager or create your own service. See https://www.drupal.org/node/3258440");
$this->assertIsObject($this->container->get('feed.bridge.writer'));
}
public function providerLaminasFeedServices() { public function providerLaminasFeedServices() {
return [ return [
['reader', 'dublincoreentry', 'DublinCore\Entry'], ['reader', 'dublincoreentry', 'DublinCore\Entry'],