[ticket/17135] Fix rebasing issues

PHPBB-17135
This commit is contained in:
rxu 2024-06-05 10:16:05 +07:00
parent 068987eba6
commit 51fae82718
No known key found for this signature in database
GPG key ID: 955F0567380E586A
4 changed files with 11 additions and 2 deletions

View file

@ -13,6 +13,7 @@ services:
class: phpbb\messenger\method\base class: phpbb\messenger\method\base
shared: false shared: false
arguments: arguments:
- '@assets.bag'
- '@config' - '@config'
- '@dispatcher' - '@dispatcher'
- '@language' - '@language'

View file

@ -22,6 +22,7 @@ use phpbb\log\log_interface;
use phpbb\path_helper; use phpbb\path_helper;
use phpbb\request\request; use phpbb\request\request;
use phpbb\messenger\queue; use phpbb\messenger\queue;
use phpbb\template\assets_bag;
use phpbb\template\twig\lexer; use phpbb\template\twig\lexer;
use phpbb\user; use phpbb\user;
@ -33,6 +34,9 @@ abstract class base
/** @var array */ /** @var array */
protected $additional_headers = []; protected $additional_headers = [];
/** @var assets_bag */
protected $assets_bag;
/** @var config */ /** @var config */
protected $config; protected $config;
@ -87,6 +91,7 @@ abstract class base
/** /**
* Messenger base class constructor * Messenger base class constructor
* *
* @param assets_bag $assets_bag
* @param config $config * @param config $config
* @param dispatcher $dispatcher * @param dispatcher $dispatcher
* @param language $language * @param language $language
@ -102,6 +107,7 @@ abstract class base
* @param string $phpbb_root_path * @param string $phpbb_root_path
*/ */
function __construct( function __construct(
assets_bag $assets_bag,
config $config, config $config,
dispatcher $dispatcher, dispatcher $dispatcher,
language $language, language $language,
@ -117,6 +123,7 @@ abstract class base
$phpbb_root_path $phpbb_root_path
) )
{ {
$this->assets_bag = $assets_bag;
$this->config = $config; $this->config = $config;
$this->dispatcher = $dispatcher; $this->dispatcher = $dispatcher;
$this->language = $language; $this->language = $language;
@ -472,6 +479,7 @@ abstract class base
} }
$template_environment = new \phpbb\template\twig\environment( $template_environment = new \phpbb\template\twig\environment(
$this->assets_bag,
$this->config, $this->config,
new \phpbb\filesystem\filesystem(), new \phpbb\filesystem\filesystem(),
$this->path_helper, $this->path_helper,

View file

@ -124,7 +124,7 @@ class phpbb_email_parsing_test extends phpbb_test_case
$phpbb_container->set('messenger.queue', $messenger_queue); $phpbb_container->set('messenger.queue', $messenger_queue);
$this->email = new \phpbb\messenger\method\phpbb_email( $this->email = new \phpbb\messenger\method\phpbb_email(
$config, $dispatcher, $lang, $log, $request, $user, $messenger_queue, $assets_bag, $config, $dispatcher, $lang, $log, $request, $user, $messenger_queue,
$phpbb_path_helper, $extension_manager, $twig_extensions_collection, $twig_lexer, $phpbb_path_helper, $extension_manager, $twig_extensions_collection, $twig_lexer,
$cache_path, $phpbb_root_path $cache_path, $phpbb_root_path
); );

View file

@ -180,7 +180,7 @@ class notification_method_webpush_test extends phpbb_tests_notification_base
$phpbb_root_path, $phpbb_root_path,
$phpEx, $phpEx,
$phpbb_container->getParameter('tables.notification_push'), $phpbb_container->getParameter('tables.notification_push'),
$phpbb_container->getParameter('tables.push_subscriptions') $phpbb_container->getParameter('tables.push_subscriptions'),
); );
$phpbb_container->set('notification.method.webpush', $this->notification_method_webpush); $phpbb_container->set('notification.method.webpush', $this->notification_method_webpush);