mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-22 00:32:29 +02:00
[ticket/13740] Remove service container from modules
PHPBB3-13740
This commit is contained in:
parent
4d2212a3c2
commit
e46689a0cd
@ -60,14 +60,13 @@ services:
|
||||
installer.module_base:
|
||||
abstract: true
|
||||
calls:
|
||||
- [setup, [@service_container, @installer.helper.config, @installer.helper.iohandler]]
|
||||
- [setup, [@installer.helper.config, @installer.helper.iohandler]]
|
||||
|
||||
installer.installer.abstract:
|
||||
class: phpbb\install\installer
|
||||
abstract: true
|
||||
arguments:
|
||||
- @installer.helper.config
|
||||
- @service_container
|
||||
|
||||
installer.install.module_collection:
|
||||
class: phpbb\di\ordered_service_collection
|
||||
|
@ -55,12 +55,10 @@ class installer
|
||||
* Constructor
|
||||
*
|
||||
* @param config $config Installer config handler
|
||||
* @param ContainerInterface $container Dependency injection container
|
||||
*/
|
||||
public function __construct(config $config, ContainerInterface $container)
|
||||
public function __construct(config $config)
|
||||
{
|
||||
$this->install_config = $config;
|
||||
$this->container = $container;
|
||||
$this->installer_modules = null;
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,6 @@ use phpbb\di\ordered_service_collection;
|
||||
use phpbb\install\exception\resource_limit_reached_exception;
|
||||
use phpbb\install\helper\config;
|
||||
use phpbb\install\helper\iohandler\iohandler_interface;
|
||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
|
||||
/**
|
||||
* Base class for installer module
|
||||
@ -78,13 +77,11 @@ abstract class module_base implements module_interface
|
||||
/**
|
||||
* Dependency getter
|
||||
*
|
||||
* @param ContainerInterface $container
|
||||
* @param config $config
|
||||
* @param iohandler_interface $iohandler
|
||||
*/
|
||||
public function setup(ContainerInterface $container, config $config, iohandler_interface $iohandler)
|
||||
public function setup(config $config, iohandler_interface $iohandler)
|
||||
{
|
||||
$this->container = $container;
|
||||
$this->install_config = $config;
|
||||
$this->iohandler = $iohandler;
|
||||
}
|
||||
@ -196,9 +193,9 @@ abstract class module_base implements module_interface
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the next task's index
|
||||
* Returns the next task's name
|
||||
*
|
||||
* @return string index of the array element of the next task
|
||||
* @return string Index of the array element of the next task
|
||||
*/
|
||||
protected function recover_progress()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user