Skip to content

Commit 0407070

Browse files
authored
Merge pull request #3030 from stof/add_missing_deprecations
Add missing deprecations on group-related event classes
2 parents d2dc95a + 2bfe26b commit 0407070

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Event/FilterGroupResponseEvent.php

+4
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@
1111

1212
namespace FOS\UserBundle\Event;
1313

14+
@trigger_error('Using Groups is deprecated since version 2.2 and will be removed in 3.0.', E_USER_DEPRECATED);
15+
1416
use FOS\UserBundle\Model\GroupInterface;
1517
use Symfony\Component\HttpFoundation\Request;
1618
use Symfony\Component\HttpFoundation\Response;
1719

1820
/**
1921
* @final
22+
*
23+
* @deprecated
2024
*/
2125
class FilterGroupResponseEvent extends GroupEvent
2226
{

Event/GetResponseGroupEvent.php

+4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@
1111

1212
namespace FOS\UserBundle\Event;
1313

14+
@trigger_error('Using Groups is deprecated since version 2.2 and will be removed in 3.0.', E_USER_DEPRECATED);
15+
1416
use Symfony\Component\HttpFoundation\Response;
1517

1618
/**
1719
* @final
20+
*
21+
* @deprecated
1822
*/
1923
class GetResponseGroupEvent extends GroupEvent
2024
{

0 commit comments

Comments
 (0)