From 45ea62b5df8fd5853ed7d9035b2244fc6f8bf783 Mon Sep 17 00:00:00 2001 From: Jason Bouffard Date: Sun, 6 Jul 2014 17:40:58 -0400 Subject: [PATCH 01/10] Added note about exporting SYMFONY_ENV Fixes an issue (https://github.com/symfony/symfony-standard/issues/662) on symfony-standard. --- cookbook/deployment/tools.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cookbook/deployment/tools.rst b/cookbook/deployment/tools.rst index f32ca384660..9eb558caddf 100644 --- a/cookbook/deployment/tools.rst +++ b/cookbook/deployment/tools.rst @@ -97,6 +97,11 @@ as you normally do: ensures that development packages are not installed in the production environment. +.. note:: + + You may need to pass the environment name via ``export SYMFONY_ENV=prod`` + for the Symfony ``post-install-cmd`` commands to execute properly. + C) Clear your Symfony cache ~~~~~~~~~~~~~~~~~~~~~~~~~~~ From 81cec5d0fda6754bd78c8603a513a40626774e91 Mon Sep 17 00:00:00 2001 From: giosh94mhz Date: Mon, 18 Aug 2014 18:10:42 +0200 Subject: [PATCH 02/10] Fix documentation for group_sequence_provider --- book/validation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/validation.rst b/book/validation.rst index 7b2cdc5ff82..2f961f8b161 100644 --- a/book/validation.rst +++ b/book/validation.rst @@ -1115,7 +1115,7 @@ provides a sequence of groups to be validated: # src/Acme/DemoBundle/Resources/config/validation.yml Acme\DemoBundle\Entity\User: - group_sequence_provider: ~ + group_sequence_provider: true .. code-block:: php-annotations From 37ab23d0a1413b206434e7bfab6451b0b352446b Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sun, 17 Aug 2014 08:45:09 +0200 Subject: [PATCH 03/10] document multiple recipients in XML configs Adds an example on how to configure multiple recipients in Monolog for sending log entries as e-mails. --- cookbook/logging/monolog_email.rst | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/cookbook/logging/monolog_email.rst b/cookbook/logging/monolog_email.rst index 9b6dee43540..a3cc3129bfb 100644 --- a/cookbook/logging/monolog_email.rst +++ b/cookbook/logging/monolog_email.rst @@ -57,10 +57,18 @@ it is broken down. + level="debug"> + + error@example.com + + + + From dc33b0c94c6777aacb7446c2873571d71c38d964 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Tue, 19 Aug 2014 00:33:50 +0200 Subject: [PATCH 04/10] add missing Monolog handler type in XML config --- cookbook/logging/monolog_email.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/cookbook/logging/monolog_email.rst b/cookbook/logging/monolog_email.rst index 9b6dee43540..3ff8a85a2f1 100644 --- a/cookbook/logging/monolog_email.rst +++ b/cookbook/logging/monolog_email.rst @@ -56,6 +56,7 @@ it is broken down. /> Date: Sun, 17 Aug 2014 20:19:07 +0200 Subject: [PATCH 05/10] tweaks for the web server configuration chapter --- .../web_server_configuration.rst | 30 +++++++++++++++---- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/cookbook/configuration/web_server_configuration.rst b/cookbook/configuration/web_server_configuration.rst index 6bd96876195..9c9fcfb4af8 100644 --- a/cookbook/configuration/web_server_configuration.rst +++ b/cookbook/configuration/web_server_configuration.rst @@ -4,12 +4,28 @@ Configuring a Web Server ======================== -The web directory is the home of all of your application's public and static -files. Including images, stylesheets and JavaScript files. It is also where the -front controllers live. For more details, see the :ref:`the-web-directory`. +The preferred way to develop your Symfony2 application is to use +:doc:`PHP's internal web server `. However, +when using an older PHP version or when running the application in the production +environment, you'll need to use a fully-featured web server. This article +describes several ways to use Symfony with Apache2 or Nginx. -The web directory services as the document root when configuring your web -server. In the examples below, this directory is in ``/var/www/project/web/``. +When using Apache2, you can configure PHP as an +:ref:`Apache module ` or with FastCGI using +:ref:`PHP FPM `. FastCGI also is the preferred way +to use PHP :ref:`with Nginx `. + +.. sidebar:: The Web Directory + + The web directory is the home of all of your application's public and + static files, including images, stylesheets and JavaScript files. It is + also where the front controllers live. For more details, see the :ref:`the-web-directory`. + + The web directory services as the document root when configuring your + web server. In the examples below, the ``web/`` directory will be the + document root. This directory is ``/var/www/project/web/``. + +.. _web-server-apache-mod-php: Apache2 with mod_php/PHP-CGI ---------------------------- @@ -63,6 +79,8 @@ following configuration snippet: Require all granted +.. _web-server-apache-fpm: + Apache2 with PHP-FPM -------------------- @@ -164,6 +182,8 @@ instead: FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization +.. _web-server-nginx: + Nginx ----- From da441aeb3a175c3508da6de9ad8f9bb2f8458af0 Mon Sep 17 00:00:00 2001 From: Ahmed Siouani Date: Fri, 22 Aug 2014 13:59:12 +0200 Subject: [PATCH 06/10] Fixed minor typos. --- components/translation/introduction.rst | 2 +- reference/forms/types/options/inherit_data.rst.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/translation/introduction.rst b/components/translation/introduction.rst index 963ba671ff3..a927a62bf3d 100644 --- a/components/translation/introduction.rst +++ b/components/translation/introduction.rst @@ -90,7 +90,7 @@ Loader too. The default loaders are: .. versionadded:: 2.1 The ``IcuDatFileLoader``, ``IcuResFileLoader``, ``IniFileLoader``, - ``MofileLoader``, ``PoFileLoader`` and ``QtFileLoader`` were introduced + ``MoFileLoader``, ``PoFileLoader`` and ``QtFileLoader`` were introduced in Symfony 2.1. All file loaders require the :doc:`Config component `. diff --git a/reference/forms/types/options/inherit_data.rst.inc b/reference/forms/types/options/inherit_data.rst.inc index 3b789db9f25..9f5f1510ca8 100644 --- a/reference/forms/types/options/inherit_data.rst.inc +++ b/reference/forms/types/options/inherit_data.rst.inc @@ -8,5 +8,5 @@ inherit_data **type**: ``boolean`` **default**: ``false`` This option determines if the form will inherit data from its parent form. -This can be useful is you have a set of fields that are duplicated across +This can be useful if you have a set of fields that are duplicated across multiple forms. See :doc:`/cookbook/form/inherit_data_option`. From a49c892d0802d7ee2e011e9ade955bc883cf9204 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Fri, 22 Aug 2014 14:48:15 -0400 Subject: [PATCH 07/10] Removing extra whitespace --- reference/forms/types/options/attr.rst.inc | 3 --- 1 file changed, 3 deletions(-) diff --git a/reference/forms/types/options/attr.rst.inc b/reference/forms/types/options/attr.rst.inc index eff44141f4e..03a13d4b9b6 100644 --- a/reference/forms/types/options/attr.rst.inc +++ b/reference/forms/types/options/attr.rst.inc @@ -10,6 +10,3 @@ as keys. This can be useful when you need to set a custom class for some widget: $builder->add('body', 'textarea', array( 'attr' => array('class' => 'tinymce'), )); - - - From 8c96e42151eaad5ab2eeb76fd5f99f7d5f99ab9d Mon Sep 17 00:00:00 2001 From: Peter Rehm Date: Wed, 20 Aug 2014 08:30:31 +0200 Subject: [PATCH 08/10] Added the schema_filter option to the reference --- reference/configuration/doctrine.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reference/configuration/doctrine.rst b/reference/configuration/doctrine.rst index 40a291a2076..0390098bdab 100644 --- a/reference/configuration/doctrine.rst +++ b/reference/configuration/doctrine.rst @@ -21,6 +21,9 @@ Full default configuration some_custom_type: class: Acme\HelloBundle\MyCustomType commented: true + # If enabled all tables not prefixed with sf2_ will be ignored by the schema + # tool. This is for custom tables which should not be altered automatically. + #schema_filter: ^sf2_ connections: default: From fb98977febb45de8f9587899b4bafa4aae194231 Mon Sep 17 00:00:00 2001 From: Ronan Guilloux Date: Wed, 20 Aug 2014 16:19:44 +0200 Subject: [PATCH 09/10] Adding 'attr' option to the Textarea options list `attr` is a quite useful option, but not yet listed here. BTW, the `attr.rst.inc` file already includes an `attr` conf. example concerning textareas. --- reference/forms/types/textarea.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reference/forms/types/textarea.rst b/reference/forms/types/textarea.rst index c3bca0a8c60..1352d9e2e6f 100644 --- a/reference/forms/types/textarea.rst +++ b/reference/forms/types/textarea.rst @@ -9,8 +9,9 @@ Renders a ``textarea`` HTML element. +-------------+------------------------------------------------------------------------+ | Rendered as | ``textarea`` tag | +-------------+------------------------------------------------------------------------+ -| Inherited | - `data`_ | -| options | - `disabled`_ | +| Inherited | - `attr`_ | +| options | - `data`_ | +| | - `disabled`_ | | | - `empty_data`_ | | | - `error_bubbling`_ | | | - `error_mapping`_ | @@ -32,6 +33,8 @@ Inherited Options These options inherit from the :doc:`form ` type: +.. include:: /reference/forms/types/options/attr.rst.inc + .. include:: /reference/forms/types/options/data.rst.inc .. include:: /reference/forms/types/options/disabled.rst.inc From 0f84ab57c9f3b1270be567df86fe5a85cfabaa18 Mon Sep 17 00:00:00 2001 From: Jason Bouffard Date: Sun, 6 Jul 2014 17:40:58 -0400 Subject: [PATCH 10/10] Added note about exporting SYMFONY_ENV Fixes an issue (https://github.com/symfony/symfony-standard/issues/662) on symfony-standard. --- cookbook/deployment/tools.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cookbook/deployment/tools.rst b/cookbook/deployment/tools.rst index 58cc3bd6cfc..9f7e50616e0 100644 --- a/cookbook/deployment/tools.rst +++ b/cookbook/deployment/tools.rst @@ -106,6 +106,12 @@ as you normally do: ensures that development packages are not installed in the production environment. +.. caution:: + + If you get a "class not found" error during this step, you may need to + run ``export SYMFONY_ENV=prod`` before running this command so that + the ``post-install-cmd`` scripts run in the ``prod`` environment. + D) Clear your Symfony Cache ~~~~~~~~~~~~~~~~~~~~~~~~~~~