mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
[ticket/17176] Use Symfony name for event dispatcher
The previously used override of the names is no longer supported. PHPBB3-17176
This commit is contained in:
@@ -80,7 +80,7 @@ class phpbb_dbal_migrator_test extends phpbb_database_test_case
|
||||
new \phpbb\db\migration\helper()
|
||||
);
|
||||
$container->set('migrator', $this->migrator);
|
||||
$container->set('dispatcher', new phpbb_mock_event_dispatcher());
|
||||
$container->set('event_dispatcher', new phpbb_mock_event_dispatcher());
|
||||
|
||||
$this->extension_manager = new \phpbb\extension\manager(
|
||||
$container,
|
||||
|
@@ -117,7 +117,7 @@ abstract class phpbb_tests_notification_base extends phpbb_database_test_case
|
||||
$phpEx
|
||||
)
|
||||
);
|
||||
$phpbb_container->set('dispatcher', $this->phpbb_dispatcher);
|
||||
$phpbb_container->set('event_dispatcher', $this->phpbb_dispatcher);
|
||||
$phpbb_container->setParameter('core.root_path', $phpbb_root_path);
|
||||
$phpbb_container->setParameter('core.php_ext', $phpEx);
|
||||
$phpbb_container->setParameter('tables.notifications', 'phpbb_notifications');
|
||||
|
@@ -84,7 +84,7 @@ class notification_method_email_test extends phpbb_tests_notification_base
|
||||
$phpbb_container->set('cache.driver', $cache_driver);
|
||||
$phpbb_container->set('cache', $cache);
|
||||
$phpbb_container->set('text_formatter.utils', new \phpbb\textformatter\s9e\utils());
|
||||
$phpbb_container->set('dispatcher', $this->phpbb_dispatcher);
|
||||
$phpbb_container->set('event_dispatcher', $this->phpbb_dispatcher);
|
||||
$phpbb_container->setParameter('core.root_path', $phpbb_root_path);
|
||||
$phpbb_container->setParameter('core.php_ext', $phpEx);
|
||||
$phpbb_container->setParameter('tables.notifications', 'phpbb_notifications');
|
||||
|
@@ -146,7 +146,7 @@ abstract class phpbb_notification_submit_post_base extends phpbb_database_test_c
|
||||
$phpEx
|
||||
)
|
||||
);
|
||||
$phpbb_container->set('dispatcher', $phpbb_dispatcher);
|
||||
$phpbb_container->set('event_dispatcher', $phpbb_dispatcher);
|
||||
$phpbb_container->set('storage.attachment', $storage);
|
||||
$phpbb_container->setParameter('core.root_path', $phpbb_root_path);
|
||||
$phpbb_container->setParameter('core.php_ext', $phpEx);
|
||||
|
@@ -286,7 +286,7 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||
);
|
||||
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
|
||||
$container->set('migrator', $migrator);
|
||||
$container->set('dispatcher', $phpbb_dispatcher);
|
||||
$container->set('event_dispatcher', $phpbb_dispatcher);
|
||||
$cache = $this->getMockBuilder('\phpbb\cache\service')
|
||||
->setConstructorArgs([$this->get_cache_driver(), $config, $this->db, $phpbb_dispatcher, $phpbb_root_path, $phpEx])
|
||||
->setMethods(['deferred_purge'])
|
||||
|
@@ -503,9 +503,9 @@ class phpbb_test_case_helpers
|
||||
}
|
||||
|
||||
// Create an event dispatcher
|
||||
if ($container->has('dispatcher'))
|
||||
if ($container->has('event_dispatcher'))
|
||||
{
|
||||
$dispatcher = $container->get('dispatcher');
|
||||
$dispatcher = $container->get('event_dispatcher');
|
||||
}
|
||||
else if (isset($phpbb_dispatcher))
|
||||
{
|
||||
|
Reference in New Issue
Block a user