diff --git a/book/controller.rst b/book/controller.rst index c7cccc810db..7eb00adeda1 100644 --- a/book/controller.rst +++ b/book/controller.rst @@ -116,7 +116,7 @@ Controllers are also called *actions*. This controller is pretty straightforward: -* *line 4*: Symfony takes advantage of PHP 5.3 namespace functionality to +* *line 4*: Symfony takes advantage of PHP's namespace functionality to namespace the entire controller class. The ``use`` keyword imports the ``Response`` class, which the controller must return. @@ -556,7 +556,7 @@ Symfony will automatically return a 500 HTTP response code. throw new \Exception('Something went wrong!'); In every case, an error page is shown to the end user and a full debug -error page is shown to the developer (i.e. when you're using ``app_dev.php`` - +error page is shown to the developer (i.e. when you're using ``app_dev.php`` - see :ref:`page-creation-environments`). You'll want to customize the error page your user sees. To do that, see the diff --git a/cookbook/bundles/best_practices.rst b/cookbook/bundles/best_practices.rst index 21947295b08..f1198443ac8 100644 --- a/cookbook/bundles/best_practices.rst +++ b/cookbook/bundles/best_practices.rst @@ -29,10 +29,9 @@ Bundle Name ----------- A bundle is also a PHP namespace. The namespace must follow the technical -interoperability `standards`_ for PHP 5.3 namespaces and class names: it -starts with a vendor segment, followed by zero or more category segments, and -it ends with the namespace short name, which must end with a ``Bundle`` -suffix. +interoperability `standards`_ for PHP namespaces and class names: it starts +with a vendor segment, followed by zero or more category segments, and it ends +with the namespace short name, which must end with a ``Bundle`` suffix. A namespace becomes a bundle as soon as you add a bundle class to it. The bundle class name must follow these simple rules: diff --git a/cookbook/logging/monolog.rst b/cookbook/logging/monolog.rst index fa43b2f23de..f039e8c41b6 100644 --- a/cookbook/logging/monolog.rst +++ b/cookbook/logging/monolog.rst @@ -4,8 +4,8 @@ How to Use Monolog to Write Logs ================================ -Monolog_ is a logging library for PHP 5.3 used by Symfony. It is -inspired by the Python LogBook library. +Monolog_ is a logging library for PHP used by Symfony. It is inspired by the +Python LogBook library. Usage -----