1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 08:47:45 +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:
Marc Alexander
2023-08-19 13:38:02 +02:00
parent 549c818a5c
commit 66b54d4469
32 changed files with 110 additions and 59 deletions

View File

@@ -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'])

View File

@@ -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))
{