Skip to content

Commit 129d853

Browse files
committed
Merge branch '2.3' into 2.7
* 2.3: [#6228] backport to the 2.3 branch Replace references of PSR-0 with PSR-4 Update testing.rst Typo in default session save_path Update major_version.rst
2 parents 26d8f84 + 84249ad commit 129d853

File tree

5 files changed

+6
-17
lines changed

5 files changed

+6
-17
lines changed

book/testing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ section:
869869
Learn more
870870
----------
871871

872-
* The :doc:`chapter about tests in the Symfony Framework Best Practices </best_practices/tests>`
872+
* :doc:`The chapter about tests in the Symfony Framework Best Practices </best_practices/tests>`
873873
* :doc:`/components/dom_crawler`
874874
* :doc:`/components/css_selector`
875875
* :doc:`/cookbook/testing/http_authentication`

cookbook/security/entity_provider.rst

+1-12
Original file line numberDiff line numberDiff line change
@@ -433,30 +433,19 @@ interface requires three methods: ``loadUserByUsername($username)``,
433433

434434
use Symfony\Component\Security\Core\User\UserInterface;
435435
use Symfony\Component\Security\Core\User\UserProviderInterface;
436-
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
437436
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
438437
use Doctrine\ORM\EntityRepository;
439438

440439
class UserRepository extends EntityRepository implements UserProviderInterface
441440
{
442441
public function loadUserByUsername($username)
443442
{
444-
$user = $this->createQueryBuilder('u')
443+
return $this->createQueryBuilder('u')
445444
->where('u.username = :username OR u.email = :email')
446445
->setParameter('username', $username)
447446
->setParameter('email', $username)
448447
->getQuery()
449448
->getOneOrNullResult();
450-
451-
if (null === $user) {
452-
$message = sprintf(
453-
'Unable to find an active admin AppBundle:User object identified by "%s".',
454-
$username
455-
);
456-
throw new UsernameNotFoundException($message);
457-
}
458-
459-
return $user;
460449
}
461450

462451
public function refreshUser(UserInterface $user)

cookbook/upgrade/major_version.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Next, use Composer to download new versions of the libraries:
134134

135135
.. code-block:: bash
136136
137-
$ composer update --with-dependencies symfony/symfony
137+
$ composer update symfony/symfony
138138
139139
.. include:: /cookbook/upgrade/_update_dep_errors.rst.inc
140140

create_framework/http_foundation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ version may vary).
138138
``vendor/autoload.php`` file that allows any class to be easily
139139
`autoloaded`_. Without autoloading, you would need to require the file
140140
where a class is defined before being able to use it. But thanks to
141-
`PSR-0`_, we can just let Composer and PHP do the hard work for us.
141+
`PSR-4`_, we can just let Composer and PHP do the hard work for us.
142142

143143
Now, let's rewrite our application by using the ``Request`` and the
144144
``Response`` classes::
@@ -309,5 +309,5 @@ applications using it (like `Symfony`_, `Drupal 8`_, `phpBB 4`_, `ezPublish
309309
.. _`Midgard CMS`: http://www.midgard-project.org/
310310
.. _`Zikula`: http://zikula.org/
311311
.. _`autoloaded`: http://php.net/autoload
312-
.. _`PSR-0`: https://github.com./php-fig/fig-standards/blob/master/accepted/PSR-0.md
312+
.. _`PSR-4`: http://www.php-fig.org/psr/psr-4/
313313
.. _`more`: http://symfony.com/components/HttpFoundation

reference/configuration/framework.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ start and depends on `gc_divisor`_ and `gc_probability`_.
808808
save_path
809809
.........
810810

811-
**type**: ``string`` **default**: ``%kernel.cache.dir%/sessions``
811+
**type**: ``string`` **default**: ``%kernel.cache_dir%/sessions``
812812

813813
This determines the argument to be passed to the save handler. If you choose
814814
the default file handler, this is the path where the session files are created.

0 commit comments

Comments
 (0)