Skip to content

Commit 50613b6

Browse files
committed
Merge reverts and fixes
1 parent fabe248 commit 50613b6

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
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: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use phpbb\config\config;
1717
use phpbb\di\service_collection;
1818
use phpbb\filesystem\filesystem;
19+
use phpbb\path_helper;
1920
use phpbb\skeleton\ext;
2021
use phpbb\skeleton\template\twig\extension\skeleton_version_compare;
2122
use phpbb\template\context;
@@ -198,17 +199,19 @@ protected function get_template_engine()
198199
'assets_version' => null,
199200
]);
200201

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');
202+
$container = $this->phpbb_container;
203+
$path_helper = $container->get('path_helper');
204+
$filesystem = $container->get('filesystem');
205+
$cache_dir = $container->getParameter('core.cache_dir');
206+
$ext_manager = $container->get('ext.manager');
207+
205208
$environment = new environment(
206209
$this->phpbb_container->get('assets.bag'),
207210
$config,
208211
$filesystem,
209212
$path_helper,
210-
$this->phpbb_container->getParameter('core.cache_dir'),
211-
$this->phpbb_container->get('ext.manager'),
213+
$cache_dir,
214+
$ext_manager,
212215
new loader()
213216
);
214217

@@ -224,7 +227,7 @@ protected function get_template_engine()
224227
new context(),
225228
$environment,
226229
$cache_dir,
227-
$container->get('user'),
230+
$this->phpbb_container->get('user'),
228231
[
229232
new skeleton_version_compare()
230233
]

0 commit comments

Comments
 (0)