Skip to content

Commit 2879747

Browse files
committed
Merge reverts and fixes
1 parent fabe248 commit 2879747

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "phpbb-extension",
44
"description": "The official phpBB skeleton extension generator.",
55
"homepage": "https://www.phpbb.com/customise/db/official_tool/ext_skeleton/",
6-
"version": "1.2.0-dev",
6+
"version": "1.3.0-dev",
77
"license": "GPL-2.0-only",
88
"authors": [
99
{

helper/packager.php

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -198,17 +198,21 @@ protected function get_template_engine()
198198
'assets_version' => null,
199199
]);
200200

201-
/** @var path_helper $path_helper */
202-
$path_helper = $this->phpbb_container->get('path_helper');
203-
/** @var filesystem $filesystem */
204-
$filesystem = $this->phpbb_container->get('filesystem');
201+
$container = $this->phpbb_container;
202+
$path_helper = $container->get('path_helper');
203+
$filesystem = $container->get('filesystem');
204+
$assets_bag = $container->get('assets.bag');
205+
$ext_manager = $container->get('ext.manager');
206+
$user = $container->get('user');
207+
$cache_dir = $container->getParameter('core.cache_dir');
208+
205209
$environment = new environment(
206-
$this->phpbb_container->get('assets.bag'),
210+
$assets_bag,
207211
$config,
208212
$filesystem,
209213
$path_helper,
210-
$this->phpbb_container->getParameter('core.cache_dir'),
211-
$this->phpbb_container->get('ext.manager'),
214+
$cache_dir,
215+
$ext_manager,
212216
new loader()
213217
);
214218

@@ -224,7 +228,7 @@ protected function get_template_engine()
224228
new context(),
225229
$environment,
226230
$cache_dir,
227-
$container->get('user'),
231+
$user,
228232
[
229233
new skeleton_version_compare()
230234
]

0 commit comments

Comments
 (0)