Closed rxu closed 7 years ago
In all ACP modules there's he code for getting controller helper like this:
$provider = new \phpbb\controller\ provider(); $symphony_request = new \phpbb\ symfony_request($request); $filesystem = new \phpbb\ filesystem(); $helper = new \phpbb\controller\ helper($template, $user, $config, $provider, $phpbb_extension_manager, $symphony_request, $request, $filesystem, $phpbb_root_path, $phpEx);
This can be simplified, which also will make it upcoming phpBB 3.2 compatible, by replacing with the 1 line:
$helper = $phpbb_container->get('controller.helper');
Fixed in new Version. Thnk You.
In all ACP modules there's he code for getting controller helper like this:
This can be simplified, which also will make it upcoming phpBB 3.2 compatible, by replacing with the 1 line: