File tree 4 files changed +17
-10
lines changed
Filter options
src/Symfony/Bundle/SecurityBundle
Tests/DependencyInjection
4 files changed +17
-10
lines changed
Original file line number Diff line number Diff line change @@ -5,8 +5,13 @@ Symfony 6.4 and Symfony 7.0 will be released simultaneously at the end of Novemb
5
5
release process, both versions will have the same features, but Symfony 7.0 won't include any deprecated features.
6
6
To upgrade, make sure to resolve all deprecation notices.
7
7
8
+ SecurityBundle
9
+ --------------
10
+
11
+ * Enabling SecurityBundle and not configuring it is not allowed
12
+
8
13
Serializer
9
14
----------
10
15
11
- * Remove denormalization support for ` AbstractUid ` in ` UidNormalizer ` , use one of ` AbstractUid ` child class instead
12
- * Denormalizing to an abstract class in ` UidNormalizer ` now throws an ` \Error `
16
+ * Remove denormalization support for ` AbstractUid ` in ` UidNormalizer ` , use one of ` AbstractUid ` child class instead
17
+ * Denormalizing to an abstract class in ` UidNormalizer ` now throws an ` \Error `
Original file line number Diff line number Diff line change 1
1
CHANGELOG
2
2
=========
3
3
4
+ 7.0
5
+ ---
6
+
7
+ * Enabling SecurityBundle and not configuring it is not allowed
8
+
4
9
6.3
5
10
---
6
11
Original file line number Diff line number Diff line change 54
54
use Symfony \Component \Security \Core \Authorization \Strategy \PriorityStrategy ;
55
55
use Symfony \Component \Security \Core \Authorization \Strategy \UnanimousStrategy ;
56
56
use Symfony \Component \Security \Core \Authorization \Voter \VoterInterface ;
57
+ use Symfony \Component \Security \Core \Exception \InvalidArgumentException ;
57
58
use Symfony \Component \Security \Core \User \ChainUserChecker ;
58
59
use Symfony \Component \Security \Core \User \ChainUserProvider ;
59
60
use Symfony \Component \Security \Core \User \UserCheckerInterface ;
@@ -96,10 +97,7 @@ public function prepend(ContainerBuilder $container)
96
97
public function load (array $ configs , ContainerBuilder $ container )
97
98
{
98
99
if (!array_filter ($ configs )) {
99
- trigger_deprecation ('symfony/security-bundle ' , '6.3 ' , 'Enabling bundle "%s" and not configuring it is deprecated. ' , SecurityBundle::class);
100
- // uncomment the following line in 7.0
101
- // throw new InvalidArgumentException(sprintf('Enabling bundle "%s" and not configuring it is not allowed.', SecurityBundle::class));
102
- return ;
100
+ throw new InvalidArgumentException (sprintf ('Enabling bundle "%s" and not configuring it is not allowed. ' , SecurityBundle::class));
103
101
}
104
102
105
103
$ mainConfig = $ this ->getConfiguration ($ configs , $ container );
Original file line number Diff line number Diff line change 30
30
use Symfony \Component \HttpFoundation \Response ;
31
31
use Symfony \Component \Security \Core \Authentication \Token \TokenInterface ;
32
32
use Symfony \Component \Security \Core \Exception \AuthenticationException ;
33
+ use Symfony \Component \Security \Core \Exception \InvalidArgumentException ;
33
34
use Symfony \Component \Security \Core \User \InMemoryUserChecker ;
34
35
use Symfony \Component \Security \Core \User \UserCheckerInterface ;
35
36
use Symfony \Component \Security \Core \User \UserInterface ;
@@ -871,16 +872,14 @@ public function testClearSiteDataLogoutListenerDisabled()
871
872
$ this ->assertFalse ($ container ->has ('security.logout.listener.clear_site_data. ' .$ firewallId ));
872
873
}
873
874
874
- /**
875
- * @group legacy
876
- */
877
875
public function testNothingDoneWithEmptyConfiguration ()
878
876
{
879
877
$ container = $ this ->getRawContainer ();
880
878
881
879
$ container ->loadFromExtension ('security ' );
882
880
883
- $ this ->expectDeprecation ('Since symfony/security-bundle 6.3: Enabling bundle "Symfony\Bundle\SecurityBundle\SecurityBundle" and not configuring it is deprecated. ' );
881
+ $ this ->expectException (InvalidArgumentException::class);
882
+ $ this ->expectExceptionMessage ('Enabling bundle "Symfony\Bundle\SecurityBundle\SecurityBundle" and not configuring it is not allowed. ' );
884
883
885
884
$ container ->compile ();
886
885
You can’t perform that action at this time.
0 commit comments