From b3e56b76089830c05b7d97c1e6e1774b04fbe4cf 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 b5d4db99..96de8078 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