Skip to content

Instantly share code, notes, and snippets.

@jbalthis
Created April 30, 2014 20:03
Show Gist options
  • Save jbalthis/c9152020d6d8f304d645 to your computer and use it in GitHub Desktop.
Save jbalthis/c9152020d6d8f304d645 to your computer and use it in GitHub Desktop.
Example Symfony2 base config that shows how to import external resources
# ===================================================================
# Example Symfony2 base config in .yml
# Illustrates how to include external .yml config files
# Various commonly used bundles
#
# app/config/config.yml - Base Framework Configuration
# ===================================================================
# ===== imports =====
imports:
- { resource: parameters.yml }
- { resource: security.yml }
- { resource: assetic/assetic.yml }
- { resource: twig/twig.yml }
- { resource: braincrafted/bootstrap.yml }
- { resource: doctrine/doctrine.yml }
- { resource: jms/aop.yml }
- { resource: fos/fos_user.yml }
- { resource: liip/imagine.yml }
- { resource: symfony/cmf_routing.yml }
- { resource: sonata/sonata_core.yml }
- { resource: sonata/sonata_block.yml }
- { resource: sonata/sonata_user.yml }
- { resource: sonata/sonata_media.yml }
- { resource: sonata/sonata_formatter.yml }
- { resource: sonata/sonata_page.yml }
- { resource: knp/knp_menu.yml }
- { resource: swiftmailer/swiftmailer.yml }
# ===== framework =====
framework:
#esi: ~
translator:
fallback: en
secret: "%secret%"
router:
resource: "%kernel.root_dir%/config/routing.yml"
strict_requirements: ~
form: true
csrf_protection: true
validation:
enable_annotations: true
templating:
engines: ['twig']
default_locale: "%locale%"
trusted_hosts: ~
trusted_proxies: [127.0.0.1]
session:
save_path: %kernel.root_dir%/cache/sessions
fragments: ~
http_method_override: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment