Skip to content

Commit

Permalink
Fixed readme with doctrine orm batcher bundle and also fixed other co…
Browse files Browse the repository at this point in the history
…nfig related issues
  • Loading branch information
loevgaard committed Aug 15, 2019
1 parent 1c1afa4 commit 21cefdf
Showing 1 changed file with 28 additions and 17 deletions.
45 changes: 28 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<?php

return [
// ...

Setono\DoctrineORMBatcherBundle\SetonoDoctrineORMBatcherBundle::class => ['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
Expand Down

0 comments on commit 21cefdf

Please sign in to comment.