Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 03709ff

Browse files
Merge branch '2.8' into 3.4
* 2.8: Use the real image URL for the filesystem tests [Finder] Update PHPdoc append() [DI] Fix phpdoc Fix code examples in PHPDoc [HttpKernel] Fix inheritdocs
2 parents 367fdfa + 3919e20 commit 03709ff

File tree

3 files changed

+21
-19
lines changed

3 files changed

+21
-19
lines changed

Core/User/UserInterface.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,10 @@ interface UserInterface
3636
/**
3737
* Returns the roles granted to the user.
3838
*
39-
* <code>
40-
* public function getRoles()
41-
* {
42-
* return array('ROLE_USER');
43-
* }
44-
* </code>
39+
* public function getRoles()
40+
* {
41+
* return array('ROLE_USER');
42+
* }
4543
*
4644
* Alternatively, the roles might be stored on a ``roles`` property,
4745
* and populated in any number of different ways when the user object

Guard/GuardAuthenticatorInterface.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,18 @@ interface GuardAuthenticatorInterface extends AuthenticationEntryPointInterface
4242
*
4343
* For example, for a form login, you might:
4444
*
45-
* if ($request->request->has('_username')) {
46-
* return array(
47-
* 'username' => $request->request->get('_username'),
48-
* 'password' => $request->request->get('_password'),
49-
* );
50-
* } else {
51-
* return;
52-
* }
45+
* if ($request->request->has('_username')) {
46+
* return array(
47+
* 'username' => $request->request->get('_username'),
48+
* 'password' => $request->request->get('_password'),
49+
* );
50+
* } else {
51+
* return;
52+
* }
5353
*
5454
* Or for an API token that's on a header, you might use:
5555
*
56-
* return array('api_key' => $request->headers->get('X-API-TOKEN'));
56+
* return array('api_key' => $request->headers->get('X-API-TOKEN'));
5757
*
5858
* @param Request $request
5959
*

Http/EntryPoint/AuthenticationEntryPointInterface.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,14 @@ interface AuthenticationEntryPointInterface
3131
* response that "helps" the user start into the authentication process.
3232
*
3333
* Examples:
34-
* A) For a form login, you might redirect to the login page
35-
* return new RedirectResponse('/login');
36-
* B) For an API token authentication system, you return a 401 response
37-
* return new Response('Auth header required', 401);
34+
*
35+
* - For a form login, you might redirect to the login page
36+
*
37+
* return new RedirectResponse('/login');
38+
*
39+
* - For an API token authentication system, you return a 401 response
40+
*
41+
* return new Response('Auth header required', 401);
3842
*
3943
* @param Request $request The request that resulted in an AuthenticationException
4044
* @param AuthenticationException $authException The exception that started the authentication process

0 commit comments

Comments
 (0)