Skip to content

Commit 14fcb3c

Browse files
committed
Merge branch '2.0'
2 parents 08c1472 + ca31fb6 commit 14fcb3c

File tree

15 files changed

+31
-28
lines changed

15 files changed

+31
-28
lines changed

book/templating.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ The templating engine in Symfony is a powerful tool that can be used each time
13601360
you need to generate presentational content in HTML, XML or any other format.
13611361
And though templates are a common way to generate content in a controller,
13621362
their use is not mandatory. The ``Response`` object returned by a controller
1363-
can be created with our without the use of a template::
1363+
can be created with or without the use of a template::
13641364

13651365
// creates a Response object whose content is the rendered template
13661366
$response = $this->render('AcmeArticleBundle:Article:index.html.twig');

book/testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ document::
264264
// Assert that there are exactly 4 h2 tags on the page
265265
$this->assertCount(4, $crawler->filter('h2')->count());
266266

267-
// Assert the the "Content-Type" header is "application/json"
267+
// Assert that the "Content-Type" header is "application/json"
268268
$this->assertTrue($client->getResponse()->headers->contains('Content-Type', 'application/json'));
269269

270270
// Assert that the response content matches a regexp.

components/console.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,14 @@ will work:
211211
212212
There are 4 option variants you can use:
213213

214-
=========================== =====================================================
214+
=========================== =====================================================================================
215215
Option Value
216-
=========================== =====================================================
217-
InputOption::VALUE_IS_ARRAY This option accepts multiple values
216+
=========================== =====================================================================================
217+
InputOption::VALUE_IS_ARRAY This option accepts multiple values (e.g. ``--dir=/foo --dir=/bar``)
218218
InputOption::VALUE_NONE Do not accept input for this option (e.g. ``--yell``)
219-
InputOption::VALUE_REQUIRED This value is required (e.g. ``iterations=5``)
220-
InputOption::VALUE_OPTIONAL This value is optional
221-
=========================== =====================================================
219+
InputOption::VALUE_REQUIRED This value is required (e.g. ``--iterations=5``), the option itself is still optional
220+
InputOption::VALUE_OPTIONAL This option may or may not have a value (e.g. ``yell`` or ``yell=loud``)
221+
=========================== =====================================================================================
222222

223223
You can combine VALUE_IS_ARRAY with VALUE_REQUIRED or VALUE_OPTIONAL like this:
224224

@@ -353,8 +353,8 @@ Then, you need to create a new
353353
options you want to pass to the command.
354354

355355
Eventually, calling the ``run()`` method actually executes the command and
356-
returns the returned code from the command (``0`` if everything went fine, any
357-
other integer otherwise).
356+
returns the returned code from the command (return value from command's
357+
``execute()`` method).
358358

359359
.. note::
360360

components/dependency_injection/parentservices.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,4 +539,4 @@ will be called twice, resulting in the ``$filters`` array containing both
539539
``my_filter`` and ``another_filter`` objects. This is great if you just want
540540
to add additional filters to the subclasses. If you want to replace the filters
541541
passed to the subclass, removing the parent setting from the config will
542-
prevent the base class from calling to ``setFilter``.
542+
prevent the base class from calling ``setFilter``.

components/routing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ you can define:
115115
For example, the following route would only accept requests to /foo with
116116
the POST method and a secure connection::
117117

118-
$route = new Route('/foo', array('_method' => 'post', '_scheme' => 'https' ));
118+
$route = new Route('/foo', array(), array('_method' => 'post', '_scheme' => 'https' ));
119119

120120
.. tip::
121121

contributing/documentation/format.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ Installing the Sphinx extensions
157157
158158
# use PHP as the primary domain
159159
primary_domain = 'php'
160+
161+
# set url for API links
162+
api_url = 'http://api.symfony.com/master/%s'
160163
161164
.. _reStructuredText: http://docutils.sf.net/rst.html
162165
.. _Sphinx: http://sphinx.pocoo.org/

cookbook/configuration/pdo_session_storage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ parameter.ini by referencing the database-related parameters defined there:
151151
<argument>%database_password%</argument>
152152
</service>
153153
154-
.. code-block:: xml
154+
.. code-block:: php
155155
156156
$pdoDefinition = new Definition('PDO', array(
157157
'mysql:dbname=%database_name%',

cookbook/logging/monolog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Monolog allows to process the record before logging it to add some
161161
extra data. A processor can be applied for the whole handler stack or
162162
only for a specific handler.
163163

164-
A processor is simply a callable receiving the record as it's first argument.
164+
A processor is simply a callable receiving the record as its first argument.
165165

166166
Processors are configured using the ``monolog.processor`` DIC tag. See the
167167
:ref:`reference about it<dic_tags-monolog-processor>`.

cookbook/request/mime_type.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ object. Internally, Symfony contains a map of the most common formats (e.g.
1515
easily be added. This document will show how you can add the ``jsonp`` format
1616
and corresponding MIME type.
1717

18-
Create an ``kernel.request`` Listener
18+
Create a ``kernel.request`` Listener
1919
-------------------------------------
2020

2121
The key to defining a new MIME type is to create a class that will "listen" to

cookbook/security/entity_provider.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ then be checked against our User entity records in the database:
233233
- { path: ^/admin, roles: ROLE_ADMIN }
234234
235235
The ``encoders`` section associates the ``sha1`` password encoder to the entity
236-
class. This means that Symfony will expect the password that's encoded in
236+
class. This means that Symfony will expect the password that's stored in
237237
the database to be encoded using this algorithm. For details on how to create
238238
a new User object with a properly encoded password, see the
239239
:ref:`book-security-encoding-user-password` section of the security chapter.
@@ -424,7 +424,7 @@ about in this section.
424424

425425
In this example, the ``AcmeUserBundle:User`` entity class defines a
426426
many-to-many relationship with a ``AcmeUserBundle:Group`` entity class. A user
427-
can be related several groups and a group can be composed of one or
427+
can be related to several groups and a group can be composed of one or
428428
more users. As a group is also a role, the previous ``getRoles()`` method now
429429
returns the list of related groups::
430430

cookbook/security/remember_me.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ to access protected resources as if the user had actually authenticated upon
116116
visiting the site.
117117

118118
In some cases, however, you may want to force the user to actually re-authenticate
119-
before accessing certain resources. For example, you might allow a "remember me"
120-
user to see basic account information, but then require them to actually
119+
before accessing certain resources. For example, you might allow "remember me"
120+
users to see basic account information, but then require them to actually
121121
re-authenticate before modifying that information.
122122

123123
The security component provides an easy way to do this. In addition to roles

cookbook/service_container/event_listener.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ event is just one of the core kernel events::
4040

4141
Each event receives a slightly different type of ``$event`` object. For
4242
the ``kernel.exception`` event, it is :class:`Symfony\\Component\\HttpKernel\\Event\\GetResponseForExceptionEvent`.
43-
To see what type of object each event listener receives, see :class:`Symfony\\Component\\HttpKernel\\KernelEvents`,
43+
To see what type of object each event listener receives, see :class:`Symfony\\Component\\HttpKernel\\KernelEvents`.
4444

4545
Now that the class is created, we just need to register it as a service and
46-
and notify Symfony that it is a "listener" on the ``kernel.exception`` event
47-
by using a special "tag":
46+
notify Symfony that it is a "listener" on the ``kernel.exception`` event by
47+
using a special "tag":
4848

4949
.. configuration-block::
5050

cookbook/service_container/scopes.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ when compiling the container. Read the sidebar below for more details.
6969
Setting the Scope in the Definition
7070
-----------------------------------
7171

72-
The scope of a service is defined in the definition of the service:
72+
The scope of a service is set in the definition of the service:
7373

7474
.. configuration-block::
7575

@@ -139,8 +139,8 @@ you have the right instance::
139139
.. caution::
140140

141141
Take care not to store the request in a property of the object for a
142-
future call of the service as it would be the same issue described
143-
in the first section (except that symfony cannot detect that you are
142+
future call of the service as it would cause the same issue described
143+
in the first section (except that Symfony cannot detect that you are
144144
wrong).
145145

146146
The service config for this class would look something like this:

cookbook/testing/insulating_clients.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ chat for instance), create several Clients::
1717
$this->assertRegExp('/Hello/', $sally->getResponse()->getContent());
1818

1919
This works except when your code maintains a global state or if it depends on
20-
third-party libraries that has some kind of global state. In such a case, you
20+
a third-party library that has some kind of global state. In such a case, you
2121
can insulate your clients::
2222

2323
$harry = static::createClient();

cookbook/workflow/_vendor_deps.rst.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Managing Vendor Libraries with composer.json
22
--------------------------------------------
33

4-
How does it work ?
5-
~~~~~~~~~~~~~~~~~~
4+
How does it work?
5+
~~~~~~~~~~~~~~~~~
66

77
Every Symfony project uses a group of third-party "vendor" libraries. One
88
way or another the goal is to download these files into your ``vendor/``

0 commit comments

Comments
 (0)