2017 © Pedro Peláez
 

library doctrine-cache-adapter-with-site-context

image

itinance/doctrine-cache-adapter-with-site-context

  • Monday, April 3, 2017
  • by itinance
  • Repository
  • 1 Watchers
  • 1 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

DoctrineCacheAdapterWithSiteContext

If you are using Emanuele Minottos TwigCacheBundle and Simon Ochos white-label-bundle (https://github.com/simonoche/white-label-bundle), you will get trouble with the cache., (*1)

This class is a replacement for the Cache Adapter used in TwigCacheBundle, to respect the current site context in a white-label / multi-site environment., (*2)

Installation:

Installation using composer:, (*3)

    "repositories": [
        {
            "type": "git",
            "url": "git@github.com:itinance/DoctrineCacheAdapterWithSiteContext.git"
        }
    ],
    "require": {
        "itinance/DoctrineCacheAdapterWithSiteContext": "dev-master"
    },

Configuration

in app/config/services.yml add the following, (*4)

    twig_cache.adapter:
        class: itinance\DoctrineCacheAdapterWithSiteContext
        arguments:
            - @cache_service
            - @site_context

@cache_service could be configured like this:, (*5)

    memcached:
        class: Memcached
        calls:
            - [ addServers, [ %memcached.servers% ] ]

    cache_service:
        class: Doctrine\Common\Cache\MemcachedCache
        calls:
            - [ setMemcached, [ @memcached ] ]

The Versions

03/04 2017

dev-master

9999999-dev

  Sources   Download

The Requires

 

by hagen huebel

03/04 2017

v0.3

0.3.0.0

  Sources   Download

The Requires

 

by hagen huebel

03/04 2017

dev-itinance-patch-requirements

dev-itinance-patch-requirements

  Sources   Download

The Requires

 

by hagen huebel

13/09 2015

v0.2

0.2.0.0

  Sources   Download

The Requires

 

by hagen huebel