Skip to content

Commit

Permalink
Merge branch '2.4' into 2.5
Browse files Browse the repository at this point in the history
* 2.4:
  Added the schema_filter option to the reference
  Removing extra whitespace
  tweaks for the web server configuration chapter
  [Reference] fix namespace in Expression constraint
  • Loading branch information
weaverryan committed Aug 22, 2014
2 parents e7a17ff + 4c3c726 commit 936cb0f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 9 deletions.
30 changes: 25 additions & 5 deletions cookbook/configuration/web_server_configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 </cookbook/web_server/built_in>`. 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 <web-server-apache-mod-php>` or with FastCGI using
:ref:`PHP FPM <web-server-apache-fpm>`. FastCGI also is the preferred way
to use PHP :ref:`with Nginx <web-server-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
----------------------------
Expand Down Expand Up @@ -63,6 +79,8 @@ following configuration snippet:
Require all granted
</Directory>
.. _web-server-apache-fpm:

Apache2 with PHP-FPM
--------------------

Expand Down Expand Up @@ -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
-----

Expand Down
3 changes: 3 additions & 0 deletions reference/configuration/doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion reference/constraints/Expression.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ One way to accomplish this is with the Expression constraint:
.. code-block:: php-annotations
// src/Acme/DemoBundle/Model/BlogPost.php
namespace Acme\DemoBundle\Model\BlogPost;
namespace Acme\DemoBundle\Model;
use Symfony\Component\Validator\Constraints as Assert;
Expand Down
3 changes: 0 additions & 3 deletions reference/forms/types/options/attr.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
));



0 comments on commit 936cb0f

Please sign in to comment.