Giter Club home page Giter Club logo

Comments (5)

halundraN avatar halundraN commented on July 17, 2024

Hello,

Look in https://github.com/prestaconcept/PrestaSitemapBundle/blob/master/Resources/config/services.xml, the presta_sitemap.generator service class is defined as a parameter: presta_sitemap.generator.class then you can already configure it and use your own generator.

But I'm agree, the current generator extends from an abstract class and it would be better to formalize it with an GeneratorInterface.

Maybe can you do a PR for this?

from prestasitemapbundle.

jvandesande avatar jvandesande commented on July 17, 2024

@alain-flaus I know that I can overwrite the parameter, but it doesn't allow me to add my own arguments to the constructor.

I will look into a PR as soon as I need it again.

from prestasitemapbundle.

yann-eugone avatar yann-eugone commented on July 17, 2024

@jvandesande : the .class parameters will be removed in the next release, as Symfony did some time ago. If you want to replace the service, you can do it using a CompilerPass.
Still, I thing this is a good enhancement.

from prestasitemapbundle.

yann-eugone avatar yann-eugone commented on July 17, 2024

This will be done in the next major release. See #92.
I'm closing this issue.

from prestasitemapbundle.

jvandesande avatar jvandesande commented on July 17, 2024

Thanks

from prestasitemapbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.