- Issue created by @zulljin
- Status changed to Needs work
over 1 year ago 12:22pm 30 March 2023 - Status changed to Closed: duplicate
over 1 year ago 1:06pm 30 March 2023
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.
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).
Closed: duplicate
2.0
Code