mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11850] Need symfony request and filesystem setup globally for session
PHPBB3-11850
This commit is contained in:
parent
85ae55ca2d
commit
1440517b78
2 changed files with 4 additions and 0 deletions
|
@ -115,6 +115,8 @@ set_config(null, null, null, $config);
|
||||||
set_config_count(null, null, null, $config);
|
set_config_count(null, null, null, $config);
|
||||||
|
|
||||||
$phpbb_log = $phpbb_container->get('log');
|
$phpbb_log = $phpbb_container->get('log');
|
||||||
|
$symfony_request = $phpbb_container->get('symfony_request');
|
||||||
|
$phpbb_filesystem = $phpbb_container->get('filesystem');
|
||||||
$phpbb_path_helper = $phpbb_container->get('path_helper');
|
$phpbb_path_helper = $phpbb_container->get('path_helper');
|
||||||
|
|
||||||
// load extensions
|
// load extensions
|
||||||
|
|
|
@ -244,6 +244,8 @@ $config = new \phpbb\config\config(array(
|
||||||
'load_tplcompile' => '1'
|
'load_tplcompile' => '1'
|
||||||
));
|
));
|
||||||
|
|
||||||
|
$symfony_request = $phpbb_container->get('symfony_request');
|
||||||
|
$phpbb_filesystem = $phpbb_container->get('filesystem');
|
||||||
$phpbb_path_helper = $phpbb_container->get('path_helper');
|
$phpbb_path_helper = $phpbb_container->get('path_helper');
|
||||||
$template = new \phpbb\template\twig\twig($phpbb_path_helper, $config, $user, new \phpbb\template\context());
|
$template = new \phpbb\template\twig\twig($phpbb_path_helper, $config, $user, new \phpbb\template\context());
|
||||||
$paths = array($phpbb_root_path . 'install/update/new/adm/style', $phpbb_admin_path . 'style');
|
$paths = array($phpbb_root_path . 'install/update/new/adm/style', $phpbb_admin_path . 'style');
|
||||||
|
|
Loading…
Add table
Reference in a new issue