Skip to content

Instantly share code, notes, and snippets.

@joelmajes
Created February 27, 2015 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joelmajes/aa0cdf679b6409a03c3c to your computer and use it in GitHub Desktop.
Save joelmajes/aa0cdf679b6409a03c3c to your computer and use it in GitHub Desktop.
imports:
- {resource: image_variations.yml}
- {resource: overrides.yml}
# Doctrine DBAL configuration
doctrine:
dbal:
connections:
default:
driver: %database.driver%
host: %database.host%
user: %database.user%
password: %database.password%
dbname: %database.dbname%
charset: %database.charset%
orm:
auto_mapping: true
assetic:
bundles: [ SiteSiteBundle ]
# Stash is used for persistence cache
stash:
caches:
default:
drivers:
# When using multiple webservers, you must use Memcache or Redis
- FileSystem
inMemory: true
registerDoctrineAdapter: false
# On Windows, using FileSystem, to avoid hitting filesystem limitations
# you need to change the keyHashFunction used to generate cache directories to "crc32"
# FileSystem
# keyHashFunction: crc32
ezpublish:
# Define all your repositories here
# If you use multi-site with multiple databases, you shall define multiple repositories
repositories:
# "main" repository, with default values
# Same as:
# main: { engine: legacy, connection: default }
main: ~
imagemagick:
enabled: true
# Absolute path to ImageMagick "convert" binary
path: %imagemagick_path%
siteaccess:
default_siteaccess: site
# Available siteaccesses
list:
- site_fr
- site_en
- site_admin
# Siteaccess groups. Use them to group common settings.
groups:
site_group:
- site_fr
- site_en
- site_admin
frontend_group:
- site_fr
- site_en
match:
Map\URI:
en: site_en
Map\Host:
%front.url%: site_fr
www.%front.url%: site_fr
%admin.url%: site_admin
# System settings, grouped by siteaccess and/or siteaccess group
system:
site_group:
# The repository to use. Here "main", which is defined in "repositories" above.
repository: main
var_dir: var/site
frontend_group:
content:
view_cache: true
ttl_cache: true
default_ttl: 30
# Session name will be common for all siteaccesses members of this group
# It means that session will be shared for frontend siteaccesses, but not with backoffice
session:
name: eZSESSID
fieldtypes:
ezxml:
custom_tags:
# Adding a higher priority to ensure built-in template will be overriden.
- { path: %kernel.root_dir%/../src/Site/SiteBundle/Resources/custom.xsl, priority: 10 }
site_fr:
languages:
- fre-FR
site_en:
languages:
- eng-GB
site_admin:
languages:
- fre-FR
- eng-GB
ez_publish_legacy:
enabled: true
system:
site_admin:
# Use legacy mode to use the admin interface since everything needs to be run via the legacy kernel
legacy_mode: true
frontend_group:
templating:
view_layout: "SiteSiteBundle::pagelayout.html.twig"
module_layout: "SiteSiteBundle::pagelayout_legacy.html.twig"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment