Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simple_sitemap_extensions
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
simple_sitemap_extensions
Commits
8e9aa8b9
Commit
8e9aa8b9
authored
1 year ago
by
Péter Serfőző
Committed by
Wolfgang Ziegler
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3347246
by peter_serfozo: DynamicSimplesitemapController constructor error
parent
e7f5326d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Controller/DynamicSimplesitemapController.php
+3
-7
3 additions, 7 deletions
src/Controller/DynamicSimplesitemapController.php
with
3 additions
and
7 deletions
src/Controller/DynamicSimplesitemapController.php
+
3
−
7
View file @
8e9aa8b9
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment