diff --git a/best_practices/controllers.rst b/best_practices/controllers.rst index 6afa28edb01..dc21bc9f767 100644 --- a/best_practices/controllers.rst +++ b/best_practices/controllers.rst @@ -157,7 +157,7 @@ also show a 404 page if no ``Post`` can be found. When Things Get More Advanced ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -This works without any configuration because the wildcard name ``{id}`` matches +The above example works without any configuration because the wildcard name ``{id}`` matches the name of the property on the entity. If this isn't true, or if you have even more complex logic, the easiest thing to do is just query for the entity manually. In our application, we have this situation in ``CommentController``: diff --git a/book/service_container.rst b/book/service_container.rst index 22c33eca89e..3e411f6a9dc 100644 --- a/book/service_container.rst +++ b/book/service_container.rst @@ -235,7 +235,7 @@ parameter and uses it in the service definition. .. code-block:: xml - http://symfony.com/?foo=%%s&bar=%%d + http://symfony.com/?foo=%%s&bar=%%d The purpose of parameters is to feed information into services. Of course there was nothing wrong with defining the service without using any parameters. diff --git a/components/dependency_injection/configurators.rst b/components/dependency_injection/configurators.rst index 109b250ae8e..3c7fedf04ed 100644 --- a/components/dependency_injection/configurators.rst +++ b/components/dependency_injection/configurators.rst @@ -145,7 +145,7 @@ The service config for the above classes would look something like this: newsletter_manager: class: NewsletterManager calls: - - [setMailer, ["@my_mailer"]] + - [setMailer, ['@my_mailer']] configurator: ['@email_configurator', configure] greeting_card_manager: diff --git a/components/dependency_injection/factories.rst b/components/dependency_injection/factories.rst index e0a351e6dad..6007cfd6d8f 100644 --- a/components/dependency_injection/factories.rst +++ b/components/dependency_injection/factories.rst @@ -143,7 +143,7 @@ method in the previous example takes the ``templating`` service as an argument: class: NewsletterManager factory: ["@newsletter_manager.factory", createNewsletterManager] arguments: - - "@templating" + - '@templating' .. code-block:: xml diff --git a/components/dependency_injection/introduction.rst b/components/dependency_injection/introduction.rst index b71ac5a926a..42c526652fd 100644 --- a/components/dependency_injection/introduction.rst +++ b/components/dependency_injection/introduction.rst @@ -243,7 +243,7 @@ config files: newsletter_manager: class: NewsletterManager calls: - - [setMailer, ["@mailer"]] + - [setMailer, ['@mailer']] .. code-block:: xml diff --git a/components/dependency_injection/parameters.rst b/components/dependency_injection/parameters.rst index fd2e8f99f9d..e38fd0efd1d 100644 --- a/components/dependency_injection/parameters.rst +++ b/components/dependency_injection/parameters.rst @@ -155,7 +155,7 @@ the parameter value in one place if needed. .. code-block:: xml - http://symfony.com/?foo=%%s&bar=%%d + http://symfony.com/?foo=%%s&bar=%%d .. code-block:: php diff --git a/components/dependency_injection/parentservices.rst b/components/dependency_injection/parentservices.rst index 1afcf43b72c..aa1ec8622d8 100644 --- a/components/dependency_injection/parentservices.rst +++ b/components/dependency_injection/parentservices.rst @@ -192,8 +192,8 @@ a parent for a service. mail_manager: abstract: true calls: - - [setMailer, ["@my_mailer"]] - - [setEmailFormatter, ["@my_email_formatter"]] + - [setMailer, ['@my_mailer']] + - [setEmailFormatter, ['@my_email_formatter']] newsletter_manager: class: "NewsletterManager" @@ -320,17 +320,17 @@ to the ``NewsletterManager`` class, the config would look like this: mail_manager: abstract: true calls: - - [setMailer, ["@my_mailer"]] - - [setEmailFormatter, ["@my_email_formatter"]] + - [setMailer, ['@my_mailer']] + - [setEmailFormatter, ['@my_email_formatter']] newsletter_manager: - class: "NewsletterManager" + class: 'NewsletterManager' parent: mail_manager calls: - - [setMailer, ["@my_alternative_mailer"]] + - [setMailer, ['@my_alternative_mailer']] greeting_card_manager: - class: "GreetingCardManager" + class: 'GreetingCardManager' parent: mail_manager .. code-block:: xml diff --git a/components/dependency_injection/types.rst b/components/dependency_injection/types.rst index 87dd02b87c7..3799fdf8ace 100644 --- a/components/dependency_injection/types.rst +++ b/components/dependency_injection/types.rst @@ -126,7 +126,7 @@ that accepts the dependency:: newsletter_manager: class: NewsletterManager calls: - - [setMailer, ["@my_mailer"]] + - [setMailer, ['@my_mailer']] .. code-block:: xml diff --git a/contributing/code/core_team.rst b/contributing/code/core_team.rst index 1b73d31ddbc..c07e1f91d4a 100644 --- a/contributing/code/core_team.rst +++ b/contributing/code/core_team.rst @@ -65,9 +65,12 @@ Active Core Members * **Abdellatif AitBoudad** (`aitboudad`_) can merge into the Translation_ component; - * **Jakub Zalas** (`jakzal`_) can merge into the DomCrawler_ component. + * **Jakub Zalas** (`jakzal`_) can merge into the DomCrawler_ component; - * **Christian Flothmann** (`xabbuh`_) can merge into the Yaml_ component. + * **Christian Flothmann** (`xabbuh`_) can merge into the Yaml_ component; + + * **Javier Eguiluz** (`javiereguiluz`_) can merge into the WebProfilerBundle_ + bundle. * **Deciders** (``@symfony/deciders`` on GitHub): @@ -177,6 +180,7 @@ discretion of the **Project Leader**. .. _Validator: https://github.com/symfony/validator .. _VarDumper: https://github.com/symfony/var-dumper .. _Yaml: https://github.com/symfony/yaml +.. _WebProfilerBundle: https://github.com/symfony/web-profiler-bundle .. _`fabpot`: https://github.com/fabpot/ .. _`webmozart`: https://github.com/webmozart/ .. _`Tobion`: https://github.com/Tobion/ @@ -190,3 +194,4 @@ discretion of the **Project Leader**. .. _`weaverryan`: https://github.com/weaverryan/ .. _`aitboudad`: https://github.com/aitboudad/ .. _`xabbuh`: https://github.com/xabbuh/ +.. _`javiereguiluz`: https://github.com/javiereguiluz/ diff --git a/contributing/documentation/format.rst b/contributing/documentation/format.rst index 599d7284152..aec7b9d5866 100644 --- a/contributing/documentation/format.rst +++ b/contributing/documentation/format.rst @@ -194,8 +194,8 @@ how the behavior has changed: Whenever a new minor version of Symfony is released (e.g. 2.4, 2.5, etc), a new branch of the documentation is created from the ``master`` branch. At this point, all the ``versionadded`` tags for Symfony versions that have -reached end-of-life will be removed. For example, if Symfony 2.5 were released -today, and 2.2 had recently reached its end-of-life, the 2.2 ``versionadded`` +reached end-of-maintenance will be removed. For example, if Symfony 2.5 were +released today, and 2.2 had recently reached its end-of-life, the 2.2 ``versionadded`` tags would be removed from the new ``2.5`` branch. Testing Documentation diff --git a/cookbook/assetic/apply_to_option.rst b/cookbook/assetic/apply_to_option.rst index 0e329087506..8f5776c7fe0 100644 --- a/cookbook/assetic/apply_to_option.rst +++ b/cookbook/assetic/apply_to_option.rst @@ -142,7 +142,7 @@ In this case you can specify that the ``coffee`` filter is applied to all bin: /usr/bin/coffee node: /usr/bin/node node_paths: [/usr/lib/node_modules/] - apply_to: "\.coffee$" + apply_to: '\.coffee$' .. code-block:: xml diff --git a/cookbook/configuration/override_dir_structure.rst b/cookbook/configuration/override_dir_structure.rst index 0a5931efbd3..6bcdcd46dd4 100644 --- a/cookbook/configuration/override_dir_structure.rst +++ b/cookbook/configuration/override_dir_structure.rst @@ -177,12 +177,10 @@ The change in the ``composer.json`` will look like this: .. code-block:: json { - ... "config": { "bin-dir": "bin", "vendor-dir": "/some/dir/vendor" }, - ... } Then, update the path to the ``autoload.php`` file in ``app/autoload.php``:: diff --git a/cookbook/deployment/heroku.rst b/cookbook/deployment/heroku.rst index 92feaabe329..0bb743fada1 100644 --- a/cookbook/deployment/heroku.rst +++ b/cookbook/deployment/heroku.rst @@ -167,7 +167,7 @@ variables, you can issue a single command to prepare your app for a deployment: Next up, it's finally time to deploy your application to Heroku. If you are doing this for the very first time, you may see a message such as the following: -.. code-block:: bash +.. code-block:: text The authenticity of host 'heroku.com (50.19.85.132)' can't be established. RSA key fingerprint is 8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad. diff --git a/cookbook/doctrine/mongodb_session_storage.rst b/cookbook/doctrine/mongodb_session_storage.rst index 7a2277cb2cc..f4669e936a3 100644 --- a/cookbook/doctrine/mongodb_session_storage.rst +++ b/cookbook/doctrine/mongodb_session_storage.rst @@ -162,7 +162,7 @@ Because MongoDB uses dynamic collection schemas, you do not need to do anything session collection. However, you may want to add an index to improve garbage collection performance. From the `MongoDB shell`_: -.. code-block:: sql +.. code-block:: text use session_db db.session.ensureIndex( { "expires_at": 1 }, { expireAfterSeconds: 0 } ) diff --git a/cookbook/form/unit_testing.rst b/cookbook/form/unit_testing.rst index 3791d0c0aaa..6ab99830165 100644 --- a/cookbook/form/unit_testing.rst +++ b/cookbook/form/unit_testing.rst @@ -165,10 +165,10 @@ It often happens that you use some options that are added by :doc:`form extensions `. One of the cases may be the ``ValidatorExtension`` with its ``invalid_message`` option. The ``TypeTestCase`` only loads the core form extension, which means an -+:class:`Symfony\\Component\\OptionsResolver\\Exception\\InvalidOptionsException` -+will be raised if you try to test a class that depends on other extensions. -+The :method:`Symfony\\Component\\Form\\Test\\TypeTestCase::getExtensions` method -+allows you to return a list of extensions to register:: +:class:`Symfony\\Component\\OptionsResolver\\Exception\\InvalidOptionsException` +will be raised if you try to test a class that depends on other extensions. +The :method:`Symfony\\Component\\Form\\Test\\TypeTestCase::getExtensions` method +allows you to return a list of extensions to register:: // src/AppBundle/Tests/Form/Type/TestedTypeTests.php namespace AppBundle\Tests\Form\Type; diff --git a/cookbook/install/unstable_versions.rst b/cookbook/install/unstable_versions.rst index b1d2b9abc77..6d8464c9489 100644 --- a/cookbook/install/unstable_versions.rst +++ b/cookbook/install/unstable_versions.rst @@ -41,7 +41,6 @@ dependency as follows: { "require": { - // ... "symfony/symfony" : "2.7.*@dev" } } diff --git a/cookbook/logging/monolog.rst b/cookbook/logging/monolog.rst index 2b95c990731..88cac6ecff9 100644 --- a/cookbook/logging/monolog.rst +++ b/cookbook/logging/monolog.rst @@ -251,17 +251,22 @@ option of your handler to ``rotating_file``: .. code-block:: xml - - + + + max_files="10" /> @@ -346,7 +351,7 @@ using a processor. monolog.processor.session_request: class: AppBundle\SessionRequestProcessor - arguments: ["@session"] + arguments: ['@session'] tags: - { name: monolog.processor, method: processRecord } @@ -445,7 +450,7 @@ the ``monolog.processor`` tag: services: monolog.processor.session_request: class: AppBundle\SessionRequestProcessor - arguments: ["@session"] + arguments: ['@session'] tags: - { name: monolog.processor, method: processRecord, handler: main } @@ -496,7 +501,7 @@ the ``monolog.processor`` tag: services: monolog.processor.session_request: class: AppBundle\SessionRequestProcessor - arguments: ["@session"] + arguments: ['@session'] tags: - { name: monolog.processor, method: processRecord, channel: main } diff --git a/cookbook/logging/monolog_email.rst b/cookbook/logging/monolog_email.rst index 51b1bdfbce2..3d2bed7d1e7 100644 --- a/cookbook/logging/monolog_email.rst +++ b/cookbook/logging/monolog_email.rst @@ -41,6 +41,7 @@ it is broken down. .. code-block:: xml + + ^/ - --> /> diff --git a/reference/configuration/twig.rst b/reference/configuration/twig.rst index 86cb8a6f1b0..ea7f51a1a83 100644 --- a/reference/configuration/twig.rst +++ b/reference/configuration/twig.rst @@ -26,7 +26,7 @@ TwigBundle Configuration ("twig") globals: # Examples: - foo: "@bar" + foo: '@bar' pi: 3.14 # Example options, but the easiest use is as seen above