Skip to content

Commit 84dbdca

Browse files
committed
Merge branch '2.8' into 3.0
* 2.8: Fix form/validation directory path Fixed an array notation in comment (serializer.rst) [Form] fixed ChoiceType example in CollectionType Fixed a path Added a caution note about REMOTE_USER and user impersonation
2 parents fb09632 + cf17c2c commit 84dbdca

File tree

5 files changed

+26
-8
lines changed

5 files changed

+26
-8
lines changed

components/form/introduction.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,8 @@ Your integration with the Validation component will look something like this::
315315
use Symfony\Component\Validator\Validation;
316316

317317
$vendorDir = realpath(__DIR__.'/../vendor');
318-
$vendorFormDir = $vendorDir.'/symfony/form/Symfony/Component/Form';
319-
$vendorValidatorDir =
320-
$vendorDir.'/symfony/validator/Symfony/Component/Validator';
318+
$vendorFormDir = $vendorDir.'/symfony/form';
319+
$vendorValidatorDir = $vendorDir.'/symfony/validator';
321320

322321
// create the validator - details will vary
323322
$validator = Validation::createValidator();

components/serializer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ You are now able to serialize only attributes in the groups you want::
296296
$serializer = new Serializer(array($normalizer));
297297

298298
$data = $serializer->normalize($obj, null, array('groups' => array('group1')));
299-
// $data = ['foo' => 'foo'];
299+
// $data = array('foo' => 'foo');
300300

301301
$obj2 = $serializer->denormalize(
302302
array('foo' => 'foo', 'bar' => 'bar'),

contributing/code/core_team.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,19 @@ Active Core Members
5151
* **Romain Neutron** (`romainneutron`_) can merge into the
5252
Process_ component;
5353

54+
<<<<<<< HEAD
5455
* **Nicolas Grekas** (`nicolas-grekas`_) can merge into the Debug_
5556
component, the VarDumper_ component and the DebugBundle_;
57+
=======
58+
<<<<<<< HEAD
59+
* **Nicolas Grekas** (`nicolas-grekas`_) can merge into the Debug_
60+
component, the VarDumper_ component and the DebugBundle_;
61+
=======
62+
* **Nicolas Grekas** (`nicolas-grekas`_) can merge into the Cache_, Debug_,
63+
Process_, PropertyAccess_, VarDumper_ components, PhpUnitBridge_ and
64+
the DebugBundle_;
65+
>>>>>>> 2.3
66+
>>>>>>> 2.7
5667

5768
* **Christophe Coevoet** (`stof`_) can merge into the BrowserKit_,
5869
Config_, Console_, DependencyInjection_, DomCrawler_, EventDispatcher_,

cookbook/security/pre_authenticated.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,10 @@ key in the ``remote_user`` firewall configuration.
148148
Just like for X509 authentication, you will need to configure a "user provider".
149149
See :ref:`the previous note <cookbook-security-pre-authenticated-user-provider-note>`
150150
for more information.
151+
152+
.. caution::
153+
154+
:doc:`User impersonation </cookbook/security/impersonating_user>` is not
155+
compatible with ``REMOTE_USER`` based authentication. The reason is that
156+
impersonation requires the authentication state to be maintained server-side
157+
but ``REMOTE_USER`` information is sent by the browser in each request.

reference/forms/types/collection.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,11 +295,12 @@ type::
295295
'entry_type' => ChoiceType::class,
296296
'entry_options' => array(
297297
'choices' => array(
298-
'nashville' => 'Nashville',
299-
'paris' => 'Paris',
300-
'berlin' => 'Berlin',
301-
'london' => 'London',
298+
'Nashville' => 'nashville',
299+
'Paris' => 'paris',
300+
'Berlin' => 'berlin',
301+
'London' => 'london',
302302
),
303+
'choices_as_values' => true,
303304
),
304305
));
305306

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy