Skip to content

Commit 26b2e9f

Browse files
committed
Merge branch '2.3'
2 parents 9268e3a + 3cda092 commit 26b2e9f

File tree

9 files changed

+23
-18
lines changed

9 files changed

+23
-18
lines changed

book/page_creation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ front controller that can be used with any environment.)
5252
When the front controller initializes the kernel, it provides two parameters:
5353
the environment, and also whether the kernel should run in debug mode.
5454
To make your application respond faster, Symfony2 maintains a cache under the
55-
``app/cache/`` directory. When in debug mode is enabled (such as ``app_dev.php``
55+
``app/cache/`` directory. When debug mode is enabled (such as ``app_dev.php``
5656
does by default), this cache is flushed automatically whenever you make changes
5757
to any code or configuration. When running in debug mode, Symfony2 runs
5858
slower, but your changes are reflected without having to manually clear the

components/dependency_injection/definitions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ To get an array of the constructor arguments for a definition you can use::
6666
or to get a single argument by its position::
6767

6868
$definition->getArgument($index);
69-
//e.g. $definition->getArgument(0) for the first argument
69+
// e.g. $definition->getArgument(0) for the first argument
7070

7171
You can add a new argument to the end of the arguments array using::
7272

components/filesystem.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ Rename
178178
:method:`Symfony\\Component\\Filesystem\\Filesystem::rename` is used to rename
179179
files and directories::
180180

181-
//rename a file
181+
// rename a file
182182
$fs->rename('/tmp/processed_video.ogg', '/path/to/store/video_647.ogg');
183-
//rename a directory
183+
// rename a directory
184184
$fs->rename('/tmp/files', '/path/to/store/files');
185185

186186
symlink

components/form/introduction.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,14 @@ component offers a rich integration.
146146

147147
To use the integration, you'll need the ``TwigBridge``, which provides integration
148148
between Twig and several Symfony2 components. If you're using Composer, you
149-
could install the latest 2.1 version by adding the following ``require``
149+
could install the latest 2.3 version by adding the following ``require``
150150
line to your ``composer.json`` file:
151151

152152
.. code-block:: json
153153
154154
{
155155
"require": {
156-
"symfony/twig-bridge": "2.1.*"
156+
"symfony/twig-bridge": "2.3.*"
157157
}
158158
}
159159
@@ -222,15 +222,15 @@ via your own Twig extension.
222222

223223
To use the built-in integration, be sure that your project has Symfony's
224224
``Translation`` and :doc:`Config </components/config/introduction>` components
225-
installed. If you're using Composer, you could get the latest 2.1 version
225+
installed. If you're using Composer, you could get the latest 2.3 version
226226
of each of these by adding the following to your ``composer.json`` file:
227227

228228
.. code-block:: json
229229
230230
{
231231
"require": {
232-
"symfony/translation": "2.1.*",
233-
"symfony/config": "2.1.*"
232+
"symfony/translation": "2.3.*",
233+
"symfony/config": "2.3.*"
234234
}
235235
}
236236
@@ -274,13 +274,13 @@ array or object) and pass it through your own validation system.
274274

275275
To use the integration with Symfony's Validator component, first make sure
276276
it's installed in your application. If you're using Composer and want to
277-
install the latest 2.1 version, add this to your ``composer.json``:
277+
install the latest 2.3 version, add this to your ``composer.json``:
278278

279279
.. code-block:: json
280280
281281
{
282282
"require": {
283-
"symfony/validator": "2.1.*"
283+
"symfony/validator": "2.3.*"
284284
}
285285
}
286286
@@ -557,7 +557,7 @@ If the request is a POST, process the submitted data (via ``bind``). Then:
557557
to ``bind``::
558558

559559
if (isset($_POST[$form->getName()])) {
560-
$form->bind($_POST[$form->getName())
560+
$form->bind($_POST[$form->getName()]);
561561

562562
// ...
563563
}

components/http_foundation/session_configuration.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,17 @@ using the `Native*SessionHandler` classes, while
249249
:class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\SessionHandlerProxy`
250250
will be used to wrap any custom save handlers, that implement :phpclass:`SessionHandlerInterface`.
251251

252-
Under PHP 5.4 and above, all session handlers implement :phpclass:`SessionHandlerInterface`
252+
From PHP 5.4 and above, all session handlers implement :phpclass:`SessionHandlerInterface`
253253
including `Native*SessionHandler` classes which inherit from :phpclass:`SessionHandler`.
254254

255255
The proxy mechanism allows you to get more deeply involved in session save handler
256256
classes. A proxy for example could be used to encrypt any session transaction
257257
without knowledge of the specific save handler.
258258

259+
.. note::
260+
261+
Before PHP 5.4, you can only proxy user-land save handlers but not
262+
native PHP save handlers.
263+
259264
.. _`php.net/session.customhandler`: http://php.net/session.customhandler
260265
.. _`php.net/session.configuration`: http://php.net/session.configuration

cookbook/configuration/apache_router.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ to ``ApacheRequest`` in ``web/app.php``::
129129

130130
require_once __DIR__.'/../app/bootstrap.php.cache';
131131
require_once __DIR__.'/../app/AppKernel.php';
132-
//require_once __DIR__.'/../app/AppCache.php';
132+
// require_once __DIR__.'/../app/AppCache.php';
133133

134134
use Symfony\Component\HttpFoundation\ApacheRequest;
135135

136136
$kernel = new AppKernel('prod', false);
137137
$kernel->loadClassCache();
138-
//$kernel = new AppCache($kernel);
138+
// $kernel = new AppCache($kernel);
139139
$kernel->handle(ApacheRequest::createFromGlobals())->send();

cookbook/security/acl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cannot only be based on the person (``Token``) who is requesting access, but
99
also involve a domain object that access is being requested for. This is where
1010
the ACL system comes in.
1111

12-
.. sidebar:: Alternatives to ACLS
12+
.. sidebar:: Alternatives to ACLs
1313

1414
Using ACL's isn't trivial, and for simpler use cases, it may be overkill.
1515
If your permission logic could be described by just writing some code (e.g.

cookbook/security/entity_provider.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ this:
649649
650650
.. code-block:: text
651651
652-
$ mysql> select * from acme_users;
652+
$ mysql> select * from acme_role;
653653
+----+-------+------------+
654654
| id | name | role |
655655
+----+-------+------------+

quick_tour/the_controller.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ from any controller::
131131
$foo = $session->get('foo');
132132

133133
// use a default value if the key doesn't exist
134-
$filters = $session->set('filters', array());
134+
$filters = $session->get('filters', array());
135135

136136
You can also store small messages that will only be available for the very
137137
next request::

0 commit comments

Comments
 (0)