File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 24
24
}
25
25
26
26
if ($ container ->hasParameter ('kernel.project_dir ' )) {
27
- $ loader ->import (' dist/parameters_sf5.yml ' );
27
+ $ loader ->import (__DIR__ . ' / dist/parameters_sf5.yml ' );
28
28
} else {
29
- $ loader ->import (' dist/parameters.yml ' );
29
+ $ loader ->import (__DIR__ . ' / dist/parameters.yml ' );
30
30
}
31
31
if (class_exists ('Symfony\Bundle\MonologBundle\MonologBundle ' )) {
32
- $ loader ->import (' dist/monolog.yml ' );
32
+ $ loader ->import (__DIR__ . ' / dist/monolog.yml ' );
33
33
}
34
- $ loader ->import (' dist/doctrine.yml ' );
35
- $ loader ->import (' dist/framework.php ' );
36
- $ loader ->import (' dist/security.php ' );
34
+ $ loader ->import (__DIR__ . ' / dist/doctrine.yml ' );
35
+ $ loader ->import (__DIR__ . ' / dist/framework.php ' );
36
+ $ loader ->import (__DIR__ . ' / dist/security.php ' );
Original file line number Diff line number Diff line change 45
45
$ config = array_merge ($ config , ['firewall ' => ['main ' => ['anonymous ' => null ]]]);
46
46
}
47
47
48
+ if (interface_exists (\Symfony \Component \PasswordHasher \PasswordHasherInterface::class)) {
49
+ unset($ config ['encoders ' ]);
50
+ $ config = array_merge ($ config , [
51
+ 'enable_authenticator_manager ' => true ,
52
+ 'password_hashers ' => ['Symfony\Component\Security\Core\User\User ' => 'plaintext ' ],
53
+ ]);
54
+ }
55
+
48
56
$ container ->loadFromExtension ('security ' , $ config );
You can’t perform that action at this time.
0 commit comments