Compatibility with 4.x version simple_sitemap

Created on 30 March 2023, over 1 year ago

Problem/Motivation

In version 4.x of the simple_sitemap module, the extended "create" method is expected to return an instance of the SimpleSitemapController class. Additionally, the "getSitemap" method should return an instance of the Response class.

Steps to reproduce

1. Download https://www.drupal.org/project/domain_simple_sitemap β†’ and https://www.drupal.org/project/simple_sitemap β†’ .
2. Try enabling domain_simple_sitemap.
3. Get error:
TypeError: Drupal\domain_simple_sitemap\DomainSitemapManager::__construct(): Argument #2 ($simpleSitemapManager) must be of type Drupal\simple_sitemap\Simplesitemap, Drupal\simple_sitemap\Manager\Generator given, called in /app/drupal/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\domain_simple_sitemap\DomainSitemapManager->__construct() (line 48 of modules/contrib/domain_simple_sitemap/src/DomainSitemapManager.php).

πŸ› Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024