Remove deprecation (Event).

This commit is contained in:
Pol Dellaiera 2021-05-06 21:24:57 +02:00
parent c019da9bcf
commit 92b6f4e206
3 changed files with 34 additions and 35 deletions

View File

@ -17,14 +17,14 @@
*/
namespace Chill\PersonBundle\Actions;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;
/**
* Event triggered when an entity attached to a person is removed.
*
*
*/
class ActionEvent extends Event
class ActionEvent implements Event
{
const DELETE = 'CHILL_PERSON.DELETE_ASSOCIATED_ENTITY';
const MOVE = 'CHILL_PERSON.MOVE_ASSOCIATED_ENTITY';

View File

@ -22,11 +22,10 @@ namespace Chill\PersonBundle\Privacy;
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
use Symfony\Component\EventDispatcher\Event;
use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Symfony\Contracts\EventDispatcher\Event;
class AccompanyingPeriodPrivacyEvent extends Event
class AccompanyingPeriodPrivacyEvent implements Event
{
public const ACCOMPANYING_PERIOD_PRIVACY_EVENT = 'chill_person.accompanying_period_privacy_event';

View File

@ -22,8 +22,8 @@ namespace Chill\PersonBundle\Privacy;
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
use Symfony\Component\EventDispatcher\Event;
use Chill\PersonBundle\Entity\Person;
use Symfony\Contracts\EventDispatcher\Event;
/**
* Class PrivacyEvent
@ -33,7 +33,7 @@ use Chill\PersonBundle\Entity\Person;
*
* @package Chill\PersonBundle\Privacy
*/
class PrivacyEvent extends Event
class PrivacyEvent implements Event
{
const PERSON_PRIVACY_EVENT = 'chill_person.privacy_event';