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

Remove cache-adapter (dev) dependency #32

Merged
merged 1 commit into from
Dec 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,32 +46,6 @@ core23_sitemap:
prefix: /
```

### Caching

If you want to use caching, you need to add the caching bundle:

```
composer require cache/cache-bundle
composer require cache/doctrine-adapter # If you want a doctrine cache
```

Create a configuration file called `core23_sitemap.yaml`:

```yaml
# config/packages/core23_sitemap.yaml

core23_sitemap:
cache:
service: 'cache.provider.sitemap_cache'

cache_adapter:
providers:
sitemap_cache:
factory: 'cache.factory.doctrine_filesystem'
options:
directory: '%kernel.cache_dir%/cache'
```

### Add static entries

You can add static entries in your yaml config:
Expand Down
8 changes: 0 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,11 @@
"symfony/options-resolver": "^4.2",
"symfony/routing": "^4.2"
},
"conflict": {
"cache/adapter-bundle": "<1.2"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.3",
"cache/adapter-bundle": "^1.2",
"localheinz/composer-normalize": "^1.3",
"symfony/browser-kit": "^3.4 || ^4.0"
},
"suggest": {
"cache/adapter-bundle": "If you need caching.",
"cache/filesystem-adapter": "For simple filesystem caching"
},
"config": {
"sort-packages": true
},
Expand Down