Commit ff52920e authored by Haralan Dobrev's avatar Haralan Dobrev

Sync provider parameters in docs

This documents all parameter options to providers
which were missing from the documentation.
parent 013b71b1
...@@ -10,14 +10,19 @@ Parameters ...@@ -10,14 +10,19 @@ Parameters
* **assets.version**: Default version for assets. * **assets.version**: Default version for assets.
* **assets.format_version** (optional): Default format for assets. * **assets.version_format** (optional): Default format for assets.
* **assets.base_path**: Default path to prepend to all assets without a package. * **assets.base_path**: Default path to prepend to all assets without a package.
* **assets.base_urls**: (Alternative to ``assets.base_path``) List of base URLs to choose from to prepend to assets without a package.
* **assets.named_packages** (optional): Named packages. Keys are the package * **assets.named_packages** (optional): Named packages. Keys are the package
names and values the configuration (supported keys are ``version``, names and values the configuration (supported keys are ``version``,
``version_format``, ``base_urls``, and ``base_path``). ``version_format``, ``base_urls``, and ``base_path``).
* **assets.json_manifest_path** (optional): Absolute path to a `JSON version manifest
<https://symfony.com/blog/new-in-symfony-3-3-manifest-based-asset-versioning>`_.
Services Services
-------- --------
......
...@@ -7,7 +7,8 @@ application with the Symfony Form component. ...@@ -7,7 +7,8 @@ application with the Symfony Form component.
Parameters Parameters
---------- ----------
* none * **csrf.session_namespace** (optional): The namespace under which the token
is stored in the session. Defaults to ``_csrf``.
Services Services
-------- --------
......
...@@ -12,8 +12,8 @@ Parameters ...@@ -12,8 +12,8 @@ Parameters
---------- ----------
* **monolog.logfile**: File where logs are written to. * **monolog.logfile**: File where logs are written to.
* **monolog.bubble**: (optional) Whether the messages that are handled can bubble up the stack or not. * **monolog.bubble** (optional): Whether the messages that are handled can bubble up the stack or not.
* **monolog.permission**: (optional) File permissions default (null), nothing change. * **monolog.permission** (optional): File permissions default (null), nothing change.
* **monolog.level** (optional): Level of logging, defaults * **monolog.level** (optional): Level of logging, defaults
to ``DEBUG``. Must be one of ``Logger::DEBUG``, ``Logger::INFO``, to ``DEBUG``. Must be one of ``Logger::DEBUG``, ``Logger::INFO``,
......
...@@ -7,7 +7,7 @@ named routes. ...@@ -7,7 +7,7 @@ named routes.
Parameters Parameters
---------- ----------
None. * **route_class**: (optional): The default route class used by the route factory. (Defaults to ``Silex\Route``)
Services Services
-------- --------
......
...@@ -12,6 +12,11 @@ Parameters ...@@ -12,6 +12,11 @@ Parameters
* **security.encoder.bcrypt.cost** (optional): Defines BCrypt password encoder cost. Defaults to 13. * **security.encoder.bcrypt.cost** (optional): Defines BCrypt password encoder cost. Defaults to 13.
* **security.role_hierarchy**:(optional): Defines a map of roles including other roles.
* **security.access_rules** (optional): Defines rules based on paths and roles.
See `Defining Access Rule <#defining-access-rules>`_.
Services Services
-------- --------
......
...@@ -35,6 +35,12 @@ Parameters ...@@ -35,6 +35,12 @@ Parameters
* **session.test**: Whether to simulate sessions or not (useful when writing * **session.test**: Whether to simulate sessions or not (useful when writing
functional tests). functional tests).
* **session.attribute_bag** (optional): The attribute bag service to use in the session.
Instance of ``AttributeBagInterface``.
* **session.flash_bag** (optional): The flash bag service to use in the session.
Instance of ``FlashBagInterface``.
Services Services
-------- --------
......
...@@ -16,6 +16,9 @@ Parameters ...@@ -16,6 +16,9 @@ Parameters
* **locale_fallbacks** (optional): Fallback locales for the translator. It will * **locale_fallbacks** (optional): Fallback locales for the translator. It will
be used when the current locale has no messages set. Defaults to ``en``. be used when the current locale has no messages set. Defaults to ``en``.
* **translator.cache_dir** (optional): Defines the cache directory
if you want translations to be cached.
Services Services
-------- --------
......
...@@ -8,9 +8,16 @@ standalone. ...@@ -8,9 +8,16 @@ standalone.
Parameters Parameters
---------- ----------
* **validator.validator_service_ids**: An array of service names representing * **validator.validator_service_ids** (optional): An array of service names representing
validators. validators.
* **validator.translation_domain** (optional): The translation domain to use for translating validator messages.
(Defaults to ``validators``.)
* **validator.object_initializers** (optional): An array of object initializers.
See `the relevant Validation documentation
<http://symfony.com/doc/current/reference/dic_tags.html#validator-initializer>`_.
Services Services
-------- --------
......
...@@ -69,7 +69,6 @@ class SessionServiceProvider implements ServiceProviderInterface, EventListenerP ...@@ -69,7 +69,6 @@ class SessionServiceProvider implements ServiceProviderInterface, EventListenerP
}; };
$app['session.storage.options'] = []; $app['session.storage.options'] = [];
$app['session.default_locale'] = 'en';
$app['session.storage.save_path'] = null; $app['session.storage.save_path'] = null;
$app['session.attribute_bag'] = null; $app['session.attribute_bag'] = null;
$app['session.flash_bag'] = null; $app['session.flash_bag'] = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment