Skip to content

Complete rewrote FrameworkBundle config reference #4736

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed config dump
  • Loading branch information
wouterj committed Feb 19, 2015
commit e19cd05d0e4a7050ab1d3a9e5dd3ee7b75e39ea5
127 changes: 0 additions & 127 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1276,133 +1276,6 @@ Whether to enable the ``serializer`` service or not in the service container.

For more details, see :doc:`/cookbook/serializer`.

Full default Configuration
--------------------------

.. configuration-block::

.. code-block:: yaml

framework:
secret: ~
http_method_override: true
trusted_proxies: []
ide: ~
test: ~
default_locale: en

# form configuration
form:
enabled: false
csrf_protection:
enabled: false
field_name: _token

# esi configuration
esi:
enabled: false

# fragments configuration
fragments:
enabled: false
path: /_fragment

# profiler configuration
profiler:
enabled: false
collect: true
only_exceptions: false
only_master_requests: false
dsn: file:%kernel.cache_dir%/profiler
username:
password:
lifetime: 86400
matcher:
ip: ~

# use the urldecoded format
path: ~ # Example: ^/path to resource/
service: ~

# router configuration
router:
resource: ~ # Required
type: ~
http_port: 80
https_port: 443

# set to true to throw an exception when a parameter does not match the requirements
# set to false to disable exceptions when a parameter does not match the requirements (and return null instead)
# set to null to disable parameter checks against requirements
# 'true' is the preferred configuration in development mode, while 'false' or 'null' might be preferred in production
strict_requirements: true

# session configuration
session:
storage_id: session.storage.native
handler_id: session.handler.native_file
name: ~
cookie_lifetime: ~
cookie_path: ~
cookie_domain: ~
cookie_secure: ~
cookie_httponly: ~
gc_divisor: ~
gc_probability: ~
gc_maxlifetime: ~
save_path: "%kernel.cache_dir%/sessions"

# serializer configuration
serializer:
enabled: false

# templating configuration
templating:
assets_version: ~
assets_version_format: "%%s?%%s"
hinclude_default_template: ~
form:
resources:

# Default:
- FrameworkBundle:Form
assets_base_urls:
http: []
ssl: []
cache: ~
engines: # Required

# Example:
- twig
loaders: []
packages:

# Prototype
name:
version: ~
version_format: "%%s?%%s"
base_urls:
http: []
ssl: []

# translator configuration
translator:
enabled: false
fallback: en

# validation configuration
validation:
enabled: false
cache: ~
enable_annotations: false
translation_domain: validators

# annotation configuration
annotations:
cache: file
file_cache_dir: "%kernel.cache_dir%/annotations"
debug: "%kernel.debug%"

.. _`protocol-relative`: http://tools.ietf.org/html/rfc3986#section-4.2
.. _`PhpStormOpener`: https://github.com/pinepain/PhpStormOpener
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do still think the full big tree of configuration is useful

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

funny you say this, as you were the one against it a couple of years back :) I've not yet removed it (will do in another PR), so we can discuss it again.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha! I totally believe that. I was looking at some of my comments in a different issue from January of this year and have no memory of making them :).

.. _`HTTP Host header attacks`: http://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html
Expand Down