Skip to content

Instantly share code, notes, and snippets.

@ahilles107
Created August 10, 2017 10:35
Show Gist options
  • Save ahilles107/21fd3abe5f16c0db6f4497015ecae789 to your computer and use it in GitHub Desktop.
Save ahilles107/21fd3abe5f16c0db6f4497015ecae789 to your computer and use it in GitHub Desktop.
TenantAwareCache service declaration
services:
swp.twig.cache.tenant_aware:
class: SWP\Bundle\CoreBundle\Twig\Cache\TenantAwareCache
arguments:
- '%kernel.cache_dir%/twig'
- '@swp_multi_tenancy.tenant_context' #this is our tenant context service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment