Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

is SitemapElementInterface still used? #240

Closed
dbu opened this issue Jul 23, 2015 · 4 comments
Closed

is SitemapElementInterface still used? #240

dbu opened this issue Jul 23, 2015 · 4 comments
Milestone

Comments

@dbu
Copy link
Member

dbu commented Jul 23, 2015

seems to be essentially unused, none of the new sitemap infrastructure is using it.

https://github.com/symfony-cmf/SeoBundle/blob/master/SitemapElementInterface.php

we might add the sitemap name to the method and create a voter for it, if we think we should have that, e.g. for an admin flag "show in sitemap".

@dbu dbu added the sitemap label Jul 23, 2015
@ElectricMaxxx
Copy link
Member

I think this interface isn't used anymore. The voters decide whether an element is included or not. We have had the query for the publish workflow checker inside the implementation at the beginning

@dbu
Copy link
Member Author

dbu commented Jul 23, 2015

currently there is one voter, the publish workflow voter. it could make sense to have documents expose a flag whether they want to be on the sitemap. alternatively it could be a method to get the list of sitemaps the document is to be included. but that would need a way to say "all" and "nothing".

@dbu dbu modified the milestone: 1.2 Jul 28, 2015
@ElectricMaxxx
Copy link
Member

@dbu so you would implement a simple voter to check that interface and the value of the flag?

@dbu
Copy link
Member Author

dbu commented Jul 30, 2015 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants