Skip to content
Snippets Groups Projects
Commit 8e9aa8b9 authored by Péter Serfőző's avatar Péter Serfőző Committed by Wolfgang Ziegler
Browse files

Issue #3347246 by peter_serfozo: DynamicSimplesitemapController constructor error

parent e7f5326d
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,6 @@
namespace Drupal\simple_sitemap_extensions\Controller;
use Drupal\Core\Config\ConfigFactory;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Logger\LoggerChannelInterface;
use Drupal\Core\State\StateInterface;
......@@ -50,13 +49,11 @@ class DynamicSimplesitemapController extends SimpleSitemapController {
* The entity type manager.
* @param \Drupal\Core\State\StateInterface $state
* State service.
* @param \Drupal\Core\Config\ConfigFactory $configFactory
* Config factory service.
* @param \Drupal\Core\Logger\LoggerChannelInterface $logger
* The simple sitemap extensions logger service.
*/
public function __construct(Simplesitemap $generator, EntityTypeManagerInterface $entity_type_manager, StateInterface $state, ConfigFactory $configFactory, LoggerChannelInterface $logger) {
parent::__construct($generator, $configFactory);
public function __construct(Generator $generator, EntityTypeManagerInterface $entity_type_manager, StateInterface $state, LoggerChannelInterface $logger) {
parent::__construct($generator);
$this->entityTypeManager = $entity_type_manager;
$this->state = $state;
$this->logger = $logger;
......@@ -70,7 +67,6 @@ class DynamicSimplesitemapController extends SimpleSitemapController {
$container->get('simple_sitemap.generator'),
$container->get('entity_type.manager'),
$container->get('state'),
$container->get('config.factory'),
$container->get('logger.channel.simple_sitemap_extensions')
);
}
......@@ -82,7 +78,7 @@ class DynamicSimplesitemapController extends SimpleSitemapController {
* The request object.
* @param string|null $variant
* Optional name of sitemap variant.
* @param string $chunk
* @param string|null $chunk
* Optional the dynamic chunk id.
*
* @return \Symfony\Component\HttpFoundation\Response
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment