Skip to content

Commit a7e86b0

Browse files
committed
Merge branch '2.3'
2 parents 3210251 + 8313805 commit a7e86b0

File tree

13 files changed

+43
-28
lines changed

13 files changed

+43
-28
lines changed

book/installation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ If there are any issues, correct them now before moving on.
236236
$ rm -rf app/cache/*
237237
$ rm -rf app/logs/*
238238
239-
$ APACHEUSER=`ps aux | grep -E '[a]pache|[h]ttpd' | grep -v root | head -1 | cut -d\ -f1`
240-
$ sudo chmod +a "$APACHEUSER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
241-
$ sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
239+
$ APACHEUSER=`ps aux | grep -E '[a]pache|[h]ttpd' | grep -v root | head -1 | cut -d\ -f1`
240+
$ sudo chmod +a "$APACHEUSER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
241+
$ sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
242242
243243
244244
**2. Using Acl on a system that does not support chmod +a**

book/routing.rst

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -422,13 +422,15 @@ longer required. The URL ``/blog`` will match this route and the value of
422422
the ``page`` parameter will be set to ``1``. The URL ``/blog/2`` will also
423423
match, giving the ``page`` parameter a value of ``2``. Perfect.
424424

425-
+---------+------------+
426-
| /blog | {page} = 1 |
427-
+---------+------------+
428-
| /blog/1 | {page} = 1 |
429-
+---------+------------+
430-
| /blog/2 | {page} = 2 |
431-
+---------+------------+
425+
+--------------------+-------+-----------------------+
426+
| URL | route | parameters |
427+
+====================+=======+=======================+
428+
| /blog | blog | {page} = 1 |
429+
+--------------------+-------+-----------------------+
430+
| /blog/1 | blog | {page} = 1 |
431+
+--------------------+-------+-----------------------+
432+
| /blog/2 | blog | {page} = 2 |
433+
+--------------------+-------+-----------------------+
432434

433435
.. tip::
434436

components/console/helpers/dialoghelper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ this set the seventh argument to ``true``::
231231

232232
$selectedColors = array_map(function($c) use ($colors) {
233233
return $colors[$c];
234-
}, $selected)
234+
}, $selected);
235235

236236
$output->writeln('You have just selected: ' . implode(', ', $selectedColors));
237237

components/http_foundation/sessions.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,6 @@ Session attributes
9898
* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::has`:
9999
Returns true if the attribute exists;
100100

101-
* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::keys`:
102-
Returns an array of stored attribute keys;
103-
104101
* :method:`Symfony\\Component\\HttpFoundation\\Session\\Session::replace`:
105102
Sets multiple attributes at once: takes a keyed array and sets each key => value pair.
106103

contributing/code/security.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Security Advisories
9696
This section indexes security vulnerabilities that were fixed in Symfony
9797
releases, starting from Symfony 1.0.0:
9898

99+
* August 7, 2013: `Security releases: Symfony 2.0.24, 2.1.12, 2.2.5, and 2.3.3 released <http://symfony.com/blog/security-releases-symfony-2-0-24-2-1-12-2-2-5-and-2-3-3-released>`_ (`CVE-2013-4751 <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-4751>`_ and `CVE-2013-4752 <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-4752>`_)
99100
* January 17, 2013: `Security release: Symfony 2.0.22 and 2.1.7 released <http://symfony.com/blog/security-release-symfony-2-0-22-and-2-1-7-released>`_ (`CVE-2013-1348 <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-1348>`_ and `CVE-2013-1397 <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-1397>`_)
100101
* December 20, 2012: `Security release: Symfony 2.0.20 and 2.1.5 <http://symfony.com/blog/security-release-symfony-2-0-20-and-2-1-5-released>`_ (`CVE-2012-6431 <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-6431>`_ and `CVE-2012-6432 <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-6432>`_)
101102
* November 29, 2012: `Security release: Symfony 2.0.19 and 2.1.4 <http://symfony.com/blog/security-release-symfony-2-0-19-and-2-1-4>`_

contributing/code/standards.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ example containing most features described below:
5252
* @param array $options
5353
*
5454
* @return string|null Transformed input
55+
*
56+
* @throws \RuntimeException
5557
*/
5658
private function transformText($dummy, array $options = array())
5759
{

cookbook/controller/service.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,14 @@ service and use it directly::
180180
// src/Acme/HelloBundle/Controller/HelloController.php
181181
namespace Acme\HelloBundle\Controller;
182182

183+
use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
183184
use Symfony\Component\HttpFoundation\Response;
184185

185186
class HelloController
186187
{
187188
private $templating;
188189

189-
public function __construct($templating)
190+
public function __construct(EngineInterface $templating)
190191
{
191192
$this->templating = $templating;
192193
}

cookbook/form/dynamic_form_modification.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,11 +277,14 @@ and fill in the listener logic::
277277

278278
$formOptions = array(
279279
'class' => 'Acme\DemoBundle\Entity\User',
280-
'multiple' => false,
281-
'expanded' => false,
282280
'property' => 'fullName',
283281
'query_builder' => function(EntityRepository $er) use ($user) {
284-
// build a custom query, or call a method on your repository (even better!)
282+
// build a custom query
283+
// return $er->createQueryBuilder('u')->addOrderBy('fullName', 'DESC');
284+
285+
// or call a method on your repository that returns the query builder
286+
// the $er is an instance of your UserRepository
287+
// return $er->createOrderByFullNameQueryBuilder();
285288
},
286289
);
287290

@@ -295,6 +298,11 @@ and fill in the listener logic::
295298
// ...
296299
}
297300

301+
.. note::
302+
303+
The ``multiple`` and ``expanded`` form options will default to false
304+
because the type of the friend field is ``entity``.
305+
298306
Using the Form
299307
~~~~~~~~~~~~~~
300308

cookbook/form/form_collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ Next, add a ``by_reference`` option to the ``tags`` field and set it to ``false`
451451

452452
With these two changes, when the form is submitted, each new ``Tag`` object
453453
is added to the ``Task`` class by calling the ``addTag`` method. Before this
454-
change, they were added internally by the form by calling ``$task->getTags()->add($task)``.
454+
change, they were added internally by the form by calling ``$task->getTags()->add($tag)``.
455455
That was just fine, but forcing the use of the "adder" method makes handling
456456
these new ``Tag`` objects easier (especially if you're using Doctrine, which
457457
we talk about next!).

cookbook/logging/monolog_email.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,6 @@ to and from addresses and the subject.
107107
You can combine these handlers with other handlers so that the errors still
108108
get logged on the server as well as the emails being sent:
109109

110-
.. caution::
111-
112-
The default spool setting for swiftmailer is set to ``memory``, which
113-
means that emails are sent at the very end of the request. However, this
114-
does not work with buffered logs at the moment. In order to enable emailing
115-
logs per the example below, you are must comment out the ``spool: { type: memory }``
116-
line in the ``config.yml`` file.
117-
118110
.. configuration-block::
119111

120112
.. code-block:: yaml

cookbook/routing/custom_route_loader.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ type you want. The resource name itself is not actually used in the example::
9797
// add the new route to the route collection:
9898
$routeName = 'extraRoute';
9999
$routes->add($routeName, $route);
100+
101+
$this->loaded = true;
100102

101103
return $routes;
102104
}

glossary.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ Glossary
1111
selection of bundles, a sensible directory structure, a default
1212
configuration, and an optional configuration system.
1313

14+
Dependency Injection
15+
The Dependency Injection is a design pattern highly used in the Symfony2 Framework.
16+
It encourages loosely coupled and more maintainable architecture of an application.
17+
The main principle of this pattern is that it allows developers to *inject* objects
18+
(also known as services) in other objects, generally passing them as parameters.
19+
Different levels of coupling between these objects can be established
20+
depending on the method used to inject objects together.
21+
The Dependency Injection pattern is the more often associated
22+
to another specific type of object: the :doc:`/book/service_container`.
23+
1424
Project
1525
A *Project* is a directory composed of an Application, a set of
1626
bundles, vendor libraries, an autoloader, and web front controller

reference/constraints/Country.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Basic Usage
2424
Acme\UserBundle\Entity\User:
2525
properties:
2626
country:
27-
- Country:
27+
- Country: ~
2828
2929
.. code-block:: php-annotations
3030

0 commit comments

Comments
 (0)