Skip to content

Commit 8f123c6

Browse files
committed
Merge branch '4.0'
* 4.0: Update json_login_setup.rst Fixed small typo mistake
2 parents 61856a2 + 1b55e0f commit 8f123c6

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

components/config/resources.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ files. This can be done with the :class:`Symfony\\Component\\Config\\FileLocator
2222
$configDirectories = array(__DIR__.'/config');
2323

2424
$fileLocator = new FileLocator($configDirectories);
25-
$yamlUserFiles = $locator->locate('users.yaml', null, false);
25+
$yamlUserFiles = $fileLocator->locate('users.yaml', null, false);
2626

2727
The locator receives a collection of locations where it should look for
2828
files. The first argument of ``locate()`` is the name of the file to look

components/options_resolver.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ correctly. To validate the types of the options, call
326326

327327
// check all items in an array recursively for a type
328328
$resolver->setAllowedTypes('dates', 'DateTime[]');
329-
$resolver->setAllowedtypes('ports', 'int[]');
329+
$resolver->setAllowedTypes('ports', 'int[]');
330330
}
331331
}
332332

security/json_login_setup.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ path:
6969
// src/Controller/SecurityController.php
7070
7171
// ...
72+
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
7273
use Symfony\Component\HttpFoundation\Request;
7374
use Symfony\Component\Routing\Annotation\Route;
7475

0 commit comments

Comments
 (0)