From 21cefdf8fc49d3eab8531dbe65fed5b84568d7a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Thu, 15 Aug 2019 14:18:26 +0200 Subject: [PATCH] Fixed readme with doctrine orm batcher bundle and also fixed other config related issues --- README.md | 45 ++++++++++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index b567b8fc..103e30f0 100644 --- a/README.md +++ b/README.md @@ -25,24 +25,35 @@ extraction to a separate bundle. ## Installation 1. Run `composer require stefandoorn/sitemap-plugin`. -2. Add to `app/AppKernel.php`: -``` - new SitemapPlugin\SitemapPlugin(), -``` - -3. Add to `app/config/config.yml`: - -``` - - { resource: "@SitemapPlugin/Resources/config/config.yml" } -``` - -4. Add to `app/config/routing.yml`: - -``` -sylius_sitemap: - resource: "@SitemapPlugin/Resources/config/routing.yml" -``` +2. Then, enable the plugin by adding it to the list of registered plugins/bundles in the `config/bundles.php` file of your project: + + ```php + ['all' => true], + SitemapPlugin\SitemapPlugin::class => ['all' => true], + + // ... + ]; + ``` + +3. Add to `config/packages/stefandoorn_sylius_sitemap.yaml`: + + ``` + imports: + - { resource: "@SitemapPlugin/Resources/config/config.yaml" } + ``` + +4. Add to `config/routes.yaml`: + + ``` + stefandoorn_sylius_sitemap: + resource: "@SitemapPlugin/Resources/config/routing.yml" + ``` ## Usage