Changelog
phil/slug-bundleAll notable changes to phil/slug-bundle will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
NEXT - YYYY-MM-DD
Added
PhilSlugBundleand thephil_slugconfiguration: named sluggers withlocale,max_lengthandleading_words, and thedefaultone. A leading word that is not one slug word is refused when the container is built.- One service per slugger,
phil_slug.slugger.<name>, to decorate;Sluggerautowired to the default one, andSlugger $<name>Sluggerto each. Sluggers, every slugger by name, as a public service.SlugExtension: thephil_slugTwig filter.- The history of former slugs, optional:
phil_slug.historywith itsconnectionandclock; theSlugHistorycontract (record(),currentSlug(),formerSlugs(),forget()), which keeps no chain and drops a slug that becomes current again;SlugHistoryKeysandInvalidSlugHistoryfor the scope and the subject;DoctrineSlugHistoryon the tablephil_slug_history,SlugHistoryTableandSlugHistorySchemaListener, which adds the table to the schema the ORM generates. Tested on SQLite, MySQL 8 and PostgreSQL. - The documentation in
doc/, indexed by the README. CONTRIBUTING.md,SECURITY.mdandCODE_OF_CONDUCT.md.