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:
@@ -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