Skip to content

Commit

Permalink
Move cache config into its own file and quote injector service defini…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
robbieaverill committed Sep 6, 2018
1 parent ba53b3a commit d215222
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
11 changes: 11 additions & 0 deletions _config/cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
Name: elementalcache
---
SilverStripe\Core\Injector\Injector:
Psr\SimpleCache\CacheInterface.ElementTabCache:
factory: SilverStripe\Core\Cache\CacheFactory
constructor:
namespace: 'ElementTabCache'
DNADesign\Elemental\Services\ElementTabProvider:
properties:
cache: '%$Psr\SimpleCache\CacheInterface.ElementTabCache'
7 changes: 0 additions & 7 deletions _config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,3 @@ Symbiote\GridFieldExtensions\GridFieldAddNewMultiClassHandler:
SilverStripe\Core\Injector\Injector:
SilverStripe\CMS\Controllers\CMSSiteTreeFilter_Search:
class: DNADesign\Elemental\Controllers\ElementSiteTreeFilterSearch
Psr\SimpleCache\CacheInterface.ElementTabCache:
factory: SilverStripe\Core\Cache\CacheFactory
constructor:
namespace: "ElementTabCache"
DNADesign\Elemental\Services\ElementTabProvider:
properties:
cache: %$Psr\SimpleCache\CacheInterface.ElementTabCache

0 comments on commit d215222

Please sign in to comment.