File tree Expand file tree Collapse file tree 4 files changed +32
-10
lines changed
src/Symfony/Bundle/SecurityBundle/Tests/Functional Expand file tree Collapse file tree 4 files changed +32
-10
lines changed Original file line number Diff line number Diff line change
1
+ {% extends " ::base.html.twig" %}
2
+
3
+ {% block body %}
4
+ Hello {{ user .username }}!<br /><br />
5
+ You're browsing to path "{{ app .request .pathInfo }}".
6
+
7
+ {% endblock %}
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of the Symfony package.
5
+ *
6
+ * (c) Fabien Potencier <fabien@symfony.com>
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ namespace Symfony \Bundle \SecurityBundle \Tests \Functional \Bundle \SimpleLoginBundle ;
13
+
14
+ use Symfony \Component \HttpKernel \Bundle \Bundle ;
15
+
16
+ class SimpleLoginBundle extends Bundle
17
+ {
18
+ public function getParent ()
19
+ {
20
+ return 'FormLoginBundle ' ;
21
+ }
22
+ }
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
use Symfony \Bundle \SecurityBundle \Tests \Functional \Bundle \FormLoginBundle \FormLoginBundle ;
4
+ use Symfony \Bundle \SecurityBundle \Tests \Functional \Bundle \SimpleLoginBundle \SimpleLoginBundle ;
4
5
use Symfony \Bundle \TwigBundle \TwigBundle ;
5
6
use Symfony \Bundle \SecurityBundle \SecurityBundle ;
6
7
use Symfony \Bundle \FrameworkBundle \FrameworkBundle ;
10
11
new SecurityBundle (),
11
12
new TwigBundle (),
12
13
new FormLoginBundle (),
14
+ new SimpleLoginBundle (),
13
15
);
Original file line number Diff line number Diff line change @@ -23,19 +23,10 @@ security:
23
23
form_login :
24
24
check_path : /login_check
25
25
default_target_path : /profile
26
- logout : ~
27
26
anonymous : ~
28
27
session_expiration :
29
28
max_idle_time : 1
30
29
expiration_url : /expired
31
30
32
- # This firewall is here just to check its the logout functionality
33
- second_area :
34
- http_basic : ~
35
- anonymous : ~
36
- logout :
37
- target : /second/target
38
- path : /second/logout
39
-
40
31
access_control :
41
- - { path: .*, roles: IS_AUTHENTICATED_FULLY }
32
+ - { path: .*, roles: IS_AUTHENTICATED_FULLY }
You can’t perform that action at this time.
0 commit comments