- Issue created by @Antonín Slejška
- Merge request !89Use the interface SitemapGetterInterface instead of the class Generator. → (Open) created by Antonín Slejška
- last update
about 1 year ago 32 pass - Status changed to Needs review
about 1 year ago 2:20pm 21 March 2024 - Status changed to RTBC
about 1 year ago 2:23pm 21 March 2024 - Status changed to Needs work
about 1 year ago 7:23am 22 March 2024 - 🇷🇺Russia walkingdexter
First of all, PHPStan errors need to be fixed https://git.drupalcode.org/issue/simple_sitemap-3432628/-/jobs/1121610.
- last update
about 1 year ago 32 pass - last update
about 1 year ago 32 pass - Status changed to Needs review
about 1 year ago 2:53pm 22 March 2024 - Status changed to Needs work
about 1 year ago 3:32pm 22 March 2024 - 🇩🇪Germany gbyte Berlin
The generator should have its own interface 'GeneratorInterface' and additionaly implement the existing 'SitemapGetterInterface'. 'GeneratorInterface' should not extend 'SitemapGetterInterface'.
- last update
about 1 year ago 32 pass - Status changed to Needs review
about 1 year ago 4:04pm 22 March 2024 - 🇩🇪Germany Antonín Slejška Hannover
Hi @gbyte, I have implemented it, as you suggested. It works by me locally, but it causes the following issues:
https://git.drupalcode.org/issue/simple_sitemap-3432628/-/jobs/1132670 - Status changed to Needs work
about 1 year ago 4:06pm 22 March 2024 - last update
about 1 year ago 32 pass - Status changed to Needs review
about 1 year ago 4:21pm 22 March 2024 - 🇩🇪Germany Antonín Slejška Hannover
I have added the methods setSitemaps and getSitemaps to the GeneratorInterface. It works: https://git.drupalcode.org/issue/simple_sitemap-3432628/-/pipelines/126371
But I'm not sure, if it is the best solution. Why not to use 'extend'? - 🇩🇪Germany drupatz
The patches aren't applicable to version 4.2.1, so here's a rewritten patch that will apply
- 🇩🇪Germany drupatz
Patch from #11 doesn't apply in 4.2.2, therefore here another rewrite
- Merge request !116Revert "update fork to simple_sitemap 4.2.2 and patch it anew" → (Closed) created by drupatz
- First commit to issue fork.
- 🇩🇪Germany mhh
I've created a new MR with all the changes that work with the current 4.x branch (MR !126). I've also rewritten it as a patch to work with 4.2.2.
- 🇩🇪Germany Peter Majmesku 🇩🇪Düsseldorf
This changes currently do not work. If I do open the config page at /admin/config/search/simplesitemap, then I do get this error:
PHP message: Uncaught PHP Exception Symfony\Component\DependencyInjection\Exception\AutowiringFailedException: "Cannot autowire service "Drupal\simple_sitemap\Manager\Generator": argument "$generator" of method "Drupal\simple_sitemap\Form\StatusForm::_construct()", you should configure its value explicitly.
Tested with version 4.2.2 of simple sitemap.
- 🇩🇪Germany Peter Majmesku 🇩🇪Düsseldorf
The circumstances are different. The MR is against the 4.x-dev branch. There it works. Against version 4.2.2 it just does not apply. Because there are various changes in the 4.x-dev branch which differ from the 4.2.2 release.
I do recommend to merge the changes in 4.x-dev and then create an new patch release (e.g. 4.2.3).
- 🇩🇪Germany Peter Majmesku 🇩🇪Düsseldorf
I can confirm that the patch from #20 does also work, if applied against version 4.2.2.