updated theme, fix deprecations in events dispatching (#1145)

This commit is contained in:
Kevin Papst
2019-09-25 19:12:12 +02:00
committed by GitHub
parent d661c8b54e
commit 8d81a394ee
16 changed files with 86 additions and 71 deletions

View File

@@ -19,7 +19,10 @@ use Symfony\Contracts\EventDispatcher\Event;
*/
final class ConfigureMainMenuEvent extends Event
{
public const CONFIGURE = 'app.main_menu_configure';
/**
* @deprecated since 1.4, will be removed with 2.0
*/
public const CONFIGURE = ConfigureMainMenuEvent::class;
/**
* @var Request

View File

@@ -15,7 +15,10 @@ use Symfony\Contracts\EventDispatcher\Event;
final class DashboardEvent extends Event
{
public const DASHBOARD = 'app.dashboard';
/**
* @deprecated since 1.4, will be removed with 2.0
*/
public const DASHBOARD = DashboardEvent::class;
/**
* @var User

View File

@@ -17,7 +17,10 @@ use Symfony\Contracts\EventDispatcher\Event;
*/
final class PrepareUserEvent extends Event
{
public const PREPARE = 'app.prepare_user';
/**
* @deprecated since 1.4, will be removed with 2.0
*/
public const PREPARE = PrepareUserEvent::class;
/**
* @var User

View File

@@ -17,7 +17,10 @@ use Symfony\Contracts\EventDispatcher\Event;
*/
final class SystemConfigurationEvent extends Event
{
public const CONFIGURE = 'app.system_configuration';
/**
* @deprecated since 1.4, will be removed with 2.0
*/
public const CONFIGURE = SystemConfigurationEvent::class;
/**
* @var SystemConfiguration[]

View File

@@ -18,7 +18,10 @@ use Symfony\Contracts\EventDispatcher\Event;
*/
final class UserPreferenceEvent extends Event
{
public const CONFIGURE = 'app.user_preferences';
/**
* @deprecated since 1.4, will be removed with 2.0
*/
public const CONFIGURE = UserPreferenceEvent::class;
/**
* @var User