Skip to content

Commit

Permalink
Merge branch '2.7' into 2.8
Browse files Browse the repository at this point in the history
* 2.7:
  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
  • Loading branch information
weaverryan committed Apr 12, 2016
2 parents 9b0ec35 + 07e8f68 commit cf17c2c
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 8 deletions.
5 changes: 2 additions & 3 deletions components/form/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,8 @@ Your integration with the Validation component will look something like this::
use Symfony\Component\Validator\Validation;

$vendorDir = realpath(__DIR__.'/../vendor');
$vendorFormDir = $vendorDir.'/symfony/form/Symfony/Component/Form';
$vendorValidatorDir =
$vendorDir.'/symfony/validator/Symfony/Component/Validator';
$vendorFormDir = $vendorDir.'/symfony/form';
$vendorValidatorDir = $vendorDir.'/symfony/validator';

// create the validator - details will vary
$validator = Validation::createValidator();
Expand Down
2 changes: 1 addition & 1 deletion components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ You are now able to serialize only attributes in the groups you want::
$serializer = new Serializer(array($normalizer));

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

$obj2 = $serializer->denormalize(
array('foo' => 'foo', 'bar' => 'bar'),
Expand Down
11 changes: 11 additions & 0 deletions contributing/code/core_team.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,19 @@ Active Core Members
* **Romain Neutron** (`romainneutron`_) can merge into the
Process_ component;

<<<<<<< HEAD
* **Nicolas Grekas** (`nicolas-grekas`_) can merge into the Debug_
component, the VarDumper_ component and the DebugBundle_;
=======
<<<<<<< HEAD
* **Nicolas Grekas** (`nicolas-grekas`_) can merge into the Debug_
component, the VarDumper_ component and the DebugBundle_;
=======
* **Nicolas Grekas** (`nicolas-grekas`_) can merge into the Cache_, Debug_,
Process_, PropertyAccess_, VarDumper_ components, PhpUnitBridge_ and
the DebugBundle_;
>>>>>>> 2.3
>>>>>>> 2.7

* **Christophe Coevoet** (`stof`_) can merge into the BrowserKit_,
Config_, Console_, DependencyInjection_, DomCrawler_, EventDispatcher_,
Expand Down
7 changes: 7 additions & 0 deletions cookbook/security/pre_authenticated.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,10 @@ key in the ``remote_user`` firewall configuration.
Just like for X509 authentication, you will need to configure a "user provider".
See :ref:`the previous note <cookbook-security-pre-authenticated-user-provider-note>`
for more information.

.. caution::

:doc:`User impersonation </cookbook/security/impersonating_user>` is not
compatible with ``REMOTE_USER`` based authentication. The reason is that
impersonation requires the authentication state to be maintained server-side
but ``REMOTE_USER`` information is sent by the browser in each request.
9 changes: 5 additions & 4 deletions reference/forms/types/collection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,12 @@ type::
'entry_type' => ChoiceType::class,
'entry_options' => array(
'choices' => array(
'nashville' => 'Nashville',
'paris' => 'Paris',
'berlin' => 'Berlin',
'london' => 'London',
'Nashville' => 'nashville',
'Paris' => 'paris',
'Berlin' => 'berlin',
'London' => 'london',
),
'choices_as_values' => true,
),
));

Expand Down

0 comments on commit cf17c2c

Please sign in to comment.