Skip to content

Commit e79e37e

Browse files
committed
Merge remote-tracking branch 'upstream/3.3' into 3.3
2 parents 64d8136 + f59a815 commit e79e37e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+307
-398
lines changed

_build/redirection_map

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,3 +338,4 @@
338338
/security/target_path /security
339339
/service_container/third_party /service_container
340340
/templating/templating_service /templates
341+
/components/http_foundation/trusting_proxies /request/load_balancer_reverse_proxy

best_practices/security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ the same ``getAuthorEmail()`` logic you used above:
330330
331331
If you're using the :ref:`default services.yml configuration <service-container-services-load-example>`,
332332
your application will :ref:`autoconfigure <services-autoconfigure>` your security
333-
voter and inject a ``AccessDecisionManagerInterface`` instance in it thanks to
333+
voter and inject an ``AccessDecisionManagerInterface`` instance into it thanks to
334334
:doc:`autowiring </service_container/autowiring>`.
335335

336336
Now, you can use the voter with the ``@Security`` annotation:

components/config/definition.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,14 @@ values::
141141

142142
$rootNode
143143
->children()
144-
->enumNode('gender')
145-
->values(array('male', 'female'))
144+
->enumNode('delivery')
145+
->values(array('standard', 'expedited', 'priority'))
146146
->end()
147147
->end()
148148
;
149149

150-
This will restrict the ``gender`` option to be either ``male`` or ``female``.
150+
This will restrict the ``delivery`` options to be either ``standard``,
151+
``expedited`` or ``priority``.
151152

152153
Array Nodes
153154
~~~~~~~~~~~

components/dependency_injection/compilation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ makes dumping the compiled container easy::
472472
}
473473

474474
``ProjectServiceContainer`` is the default name given to the dumped container
475-
class, you can change this though this with the ``class`` option when you
475+
class. However you can change this with the ``class`` option when you
476476
dump it::
477477

478478
// ...

components/finder.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ the Finder instance.
5050

5151
.. tip::
5252

53-
A Finder instance is a PHP :phpclass:`Iterator`. So, instead of iterating over the
53+
A Finder instance is a PHP :phpclass:`Iterator`. So, in addition to iterating over the
5454
Finder with ``foreach``, you can also convert it to an array with the
5555
:phpfunction:`iterator_to_array` method, or get the number of items with
5656
:phpfunction:`iterator_count`.

components/http_foundation/trusting_proxies.rst

Lines changed: 0 additions & 65 deletions
This file was deleted.

components/ldap.rst

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ You can install the component in 2 different ways:
2020
Usage
2121
-----
2222

23-
The :class:`Symfony\\Component\\Ldap\\LdapClient` class provides methods
24-
to authenticate and query against an LDAP server.
23+
The :class:`Symfony\\Component\\Ldap\\Ldap` class provides methods to authenticate
24+
and query against an LDAP server.
2525

26-
The :class:`Symfony\\Component\\Ldap\\LdapClient` class can be configured
26+
The ``Ldap`` class uses an :class:`Symfony\\Component\\Ldap\\Adapter\\AdapterInterface`
27+
to communicate with an LDAP server. The :class:`adapter <Symfony\\Component\\Ldap\\Adapter\\ExtLdap\\Adapter>`
28+
for PHP's built-in LDAP extension, for example, can be configured
2729
using the following options:
2830

2931
``host``
@@ -47,24 +49,32 @@ using the following options:
4749

4850
For example, to connect to a start-TLS secured LDAP server::
4951

50-
use Symfony\Component\Ldap\LdapClient;
51-
52-
$ldap = new LdapClient('my-server', 389, 3, false, true);
53-
54-
The :method:`Symfony\\Component\\Ldap\\LdapClient::bind` method
52+
use Symfony\Component\Ldap\Adapter\ExtLdap\Adapter;
53+
use Symfony\Component\Ldap\Ldap;
54+
55+
$adapter = new Adapter(array(
56+
'host' => 'my-server',
57+
'port' => 389,
58+
'encryption' => 'tls',
59+
'options' => array(
60+
'protocol_version' => 3,
61+
'referrals' => false,
62+
),
63+
));
64+
$ldap = new Ldap($adapter);
65+
66+
The :method:`Symfony\\Component\\Ldap\\Ldap::bind` method
5567
authenticates a previously configured connection using both the
5668
distinguished name (DN) and the password of a user::
5769

58-
use Symfony\Component\Ldap\LdapClient;
5970
// ...
6071

6172
$ldap->bind($dn, $password);
6273

6374
Once bound (or if you enabled anonymous authentication on your
6475
LDAP server), you may query the LDAP server using the
65-
:method:`Symfony\\Component\\Ldap\\LdapClient::find` method::
76+
:method:`Symfony\\Component\\Ldap\\Ldap::find` method::
6677

67-
use Symfony\Component\Ldap\LdapClient;
6878
// ...
6979

7080
$ldap->find('dc=symfony,dc=com', '(&(objectclass=person)(ou=Maintainers))');

components/security/authentication.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,6 @@ The ``security.interactive_login`` event is triggered after a user has actively
305305
logged into your website. It is important to distinguish this action from
306306
non-interactive authentication methods, such as:
307307

308-
* authentication based on a "remember me" cookie.
309308
* authentication based on your session.
310309
* authentication using a HTTP basic or HTTP digest header.
311310

controller/service.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ The best way to see how to replace base ``Controller`` convenience methods is to
130130
look at the `ControllerTrait`_ that holds its logic.
131131

132132
If you want to know what type-hints to use for each service, see the
133-
``getSubscribedEvents()`` method in `AbstractController`_.
133+
``getSubscribedServices()`` method in `AbstractController`_.
134134

135135
.. _`Controller class source code`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php
136136
.. _`base Controller class`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php

controller/soap_web_service.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ In this case, the SOAP service will allow the client to call a method called
3939
public function hello($name)
4040
{
4141

42-
$message = \Swift_Message::newInstance()
42+
$message = new \Swift_Message('Hello Service')
4343
->setTo('me@example.com')
44-
->setSubject('Hello Service')
4544
->setBody($name . ' says hi!');
4645

4746
$this->mailer->send($message);

doctrine.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,9 +633,9 @@ Fetching an object back out of the database is even easier. For example,
633633
suppose you've configured a route to display a specific ``Product`` based
634634
on its ``id`` value::
635635

636-
use Doctrine\ORM\EnityManagerInterface;
636+
use Doctrine\ORM\EntityManagerInterface;
637637

638-
public function showAction($productId, EnityManagerInterface $em)
638+
public function showAction($productId, EntityManagerInterface $em)
639639
{
640640
$product = $em->getRepository('AppBundle:Product')
641641
->find($productId);
@@ -727,7 +727,7 @@ Updating an Object
727727
Once you've fetched an object from Doctrine, updating it is easy. Suppose
728728
you have a route that maps a product id to an update action in a controller::
729729

730-
use Doctrine\ORM\EnityManagerInterface;
730+
use Doctrine\ORM\EntityManagerInterface;
731731

732732
public function updateAction($productId, EntityManagerInterface $em)
733733
{

email.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ an email is pretty straightforward::
103103

104104
public function indexAction($name, \Swift_Mailer $mailer)
105105
{
106-
$message = \Swift_Message::newInstance()
107-
->setSubject('Hello Email')
106+
$message = new \Swift_Message('Hello Email')
108107
->setFrom('send@example.com')
109108
->setTo('recipient@example.com')
110109
->setBody(

email/dev_environment.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ Now, suppose you're sending an email to ``recipient@example.com``.
100100
101101
public function indexAction($name, \Swift_Mailer $mailer)
102102
{
103-
$message = \Swift_Message::newInstance()
104-
->setSubject('Hello Email')
103+
$message = new \Swift_Message('Hello Email')
105104
->setFrom('send@example.com')
106105
->setTo('recipient@example.com')
107106
->setBody(

email/testing.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ Start with an easy controller action that sends an email::
1414

1515
public function sendEmailAction($name, \Swift_Mailer $mailer)
1616
{
17-
$message = \Swift_Message::newInstance()
18-
->setSubject('Hello Email')
17+
$message = new \Swift_Message('Hello Email')
1918
->setFrom('send@example.com')
2019
->setTo('recipient@example.com')
2120
->setBody('You should see me from the profiler!')

0 commit comments

Comments
 (0)