From 8d4f444c25ba45439bef046bda1b1abb89c84ed0 Mon Sep 17 00:00:00 2001
From: Philipp Rieber
Date: Thu, 20 Feb 2014 08:28:41 +0100
Subject: [PATCH 1/2] Fixes of all kind
---
book/controller.rst | 4 ++--
book/forms.rst | 12 ++++++------
book/security.rst | 8 ++++----
book/service_container.rst | 8 +++-----
book/templating.rst | 8 ++++----
book/translation.rst | 9 +++++----
book/validation.rst | 4 ++--
components/console/helpers/dialoghelper.rst | 2 +-
components/console/helpers/tablehelper.rst | 2 +-
components/console/introduction.rst | 12 ++++++------
components/dependency_injection/advanced.rst | 14 +++++++++++++-
components/dependency_injection/definitions.rst | 2 +-
components/dependency_injection/introduction.rst | 4 ++--
components/dependency_injection/parentservices.rst | 2 +-
components/dependency_injection/tags.rst | 12 ++++++++++++
components/http_foundation/introduction.rst | 4 ++--
components/property_access/introduction.rst | 2 +-
components/routing/introduction.rst | 10 +++++-----
components/translation/usage.rst | 2 +-
cookbook/bundles/inheritance.rst | 2 +-
cookbook/bundles/override.rst | 2 +-
cookbook/bundles/prepend_extension.rst | 4 ++--
cookbook/security/entity_provider.rst | 2 +-
reference/constraints/Image.rst | 2 +-
reference/constraints/Valid.rst | 6 ++++--
reference/forms/types/collection.rst | 4 ++--
reference/forms/types/date.rst | 2 +-
reference/forms/types/entity.rst | 2 +-
.../forms/types/options/checkbox_compound.rst.inc | 2 +-
reference/forms/types/options/date_widget.rst.inc | 4 ++--
reference/forms/types/options/empty_data.rst.inc | 2 +-
reference/forms/types/options/label.rst.inc | 13 +++++++++++--
reference/forms/types/options/label_attr.rst.inc | 2 +-
reference/forms/types/textarea.rst | 2 +-
34 files changed, 103 insertions(+), 69 deletions(-)
diff --git a/book/controller.rst b/book/controller.rst
index 7692b7e59ae..de17696b4a9 100644
--- a/book/controller.rst
+++ b/book/controller.rst
@@ -470,7 +470,7 @@ object that's returned from that controller::
return $response;
}
-Notice that the `forward()` method uses the same string representation of
+Notice that the ``forward()`` method uses the same string representation of
the controller used in the routing configuration. In this case, the target
controller class will be ``HelloController`` inside some ``AcmeHelloBundle``.
The array passed to the method becomes the arguments on the resulting controller.
@@ -786,7 +786,7 @@ The Request Object
Besides the values of the routing placeholders, the controller also has access
to the ``Request`` object. The framework injects the ``Request`` object in the
controller if a variable is type-hinted with
-`Symfony\Component\HttpFoundation\Request`::
+:class:`Symfony\\Component\\HttpFoundation\\Request`::
use Symfony\Component\HttpFoundation\Request;
diff --git a/book/forms.rst b/book/forms.rst
index 08acb2a8e4d..e1c898a0b41 100644
--- a/book/forms.rst
+++ b/book/forms.rst
@@ -495,7 +495,7 @@ these cases you can set the ``validation_groups`` option to ``false``::
Note that when you do that, the form will still run basic integrity checks,
for example whether an uploaded file was too large or whether non-existing
fields were submitted. If you want to suppress validation, you can use the
-:ref:`POST_SUBMIT event `
+:ref:`POST_SUBMIT event `.
.. index::
single: Forms; Validation groups based on submitted data
@@ -1811,7 +1811,7 @@ an array.
$this->get('request')->request->get('name');
- Be advised, however, that in most cases using the getData() method is
+ Be advised, however, that in most cases using the ``getData()`` method is
a better choice, since it returns the data (usually an object) after
it's been transformed by the form framework.
@@ -1858,7 +1858,7 @@ but here's a short example:
.. tip::
- If you are using Validation Groups, you need to either reference the
+ If you are using validation groups, you need to either reference the
``Default`` group when creating the form, or set the correct group on
the constraint you are adding.
@@ -1896,7 +1896,7 @@ Learn more from the Cookbook
.. _`Symfony2 Form component`: https://github.com/symfony/Form
.. _`DateTime`: http://php.net/manual/en/class.datetime.php
-.. _`Twig Bridge`: https://github.com/symfony/symfony/tree/2.2/src/Symfony/Bridge/Twig
-.. _`form_div_layout.html.twig`: https://github.com/symfony/symfony/blob/2.2/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
+.. _`Twig Bridge`: https://github.com/symfony/symfony/tree/2.3/src/Symfony/Bridge/Twig
+.. _`form_div_layout.html.twig`: https://github.com/symfony/symfony/blob/2.3/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
.. _`Cross-site request forgery`: http://en.wikipedia.org/wiki/Cross-site_request_forgery
-.. _`view on GitHub`: https://github.com/symfony/symfony/tree/2.2/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form
+.. _`view on GitHub`: https://github.com/symfony/symfony/tree/2.3/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form
diff --git a/book/security.rst b/book/security.rst
index 30492147938..1912cce1d23 100644
--- a/book/security.rst
+++ b/book/security.rst
@@ -34,7 +34,7 @@ Basic Example: HTTP Authentication
The Security component can be configured via your application configuration.
In fact, most standard security setups are just a matter of using the right
configuration. The following configuration tells Symfony to secure any URL
-matching ``/admin/*`` and to ask the user for credentials using basic HTTP
+matching ``/admin*`` and to ask the user for credentials using basic HTTP
authentication (i.e. the old-school username/password box):
.. configuration-block::
@@ -143,9 +143,9 @@ that looks like the following:
* There are two users in the system (``ryan`` and ``admin``);
* Users authenticate themselves via the basic HTTP authentication prompt;
-* Any URL matching ``/admin/*`` is secured, and only the ``admin`` user
+* Any URL matching ``/admin*`` is secured, and only the ``admin`` user
can access it;
-* All URLs *not* matching ``/admin/*`` are accessible by all users (and the
+* All URLs *not* matching ``/admin*`` are accessible by all users (and the
user is never prompted to log in).
Read this short summary about how security works and how each part of the
@@ -193,7 +193,7 @@ Access Controls (Authorization)
If a user requests ``/admin/foo``, however, the process behaves differently.
This is because of the ``access_control`` configuration section that says
that any URL matching the regular expression pattern ``^/admin`` (i.e. ``/admin``
-or anything matching ``/admin/*``) requires the ``ROLE_ADMIN`` role. Roles
+or anything matching ``/admin*``) requires the ``ROLE_ADMIN`` role. Roles
are the basis for most authorization: a user can access ``/admin/foo`` only
if it has the ``ROLE_ADMIN`` role.
diff --git a/book/service_container.rst b/book/service_container.rst
index 14a9bff96e6..a036a6cae41 100644
--- a/book/service_container.rst
+++ b/book/service_container.rst
@@ -980,12 +980,10 @@ with ``twig.extension`` and automatically registers them as extensions.
Tags, then, are a way to tell Symfony2 or other third-party bundles that
your service should be registered or used in some special way by the bundle.
-The following is a list of tags available with the core Symfony2 bundles.
-Each of these has a different effect on your service and many tags require
-additional arguments (beyond just the ``name`` parameter).
-
For a list of all the tags available in the core Symfony Framework, check
-out :doc:`/reference/dic_tags`.
+out :doc:`/reference/dic_tags`. Each of these has a different effect on your
+service and many tags require additional arguments (beyond just the ``name``
+parameter).
Debugging Services
------------------
diff --git a/book/templating.rst b/book/templating.rst
index e9a5aa53072..58ac2bc114e 100644
--- a/book/templating.rst
+++ b/book/templating.rst
@@ -1039,14 +1039,14 @@ stylesheets and JavaScripts that you'll need throughout your site:
{# ... #}
{% block stylesheets %}
-
+
{% endblock %}
{# ... #}
{% block javascripts %}
-
+
{% endblock %}