mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[feature/avatars] Removed unneeded dependencies
PHPBB3-10018
This commit is contained in:
parent
d439f47710
commit
215ac6a0da
2 changed files with 1 additions and 13 deletions
|
@ -17,11 +17,7 @@ services:
|
|||
avatar.manager:
|
||||
class: phpbb_avatar_manager
|
||||
arguments:
|
||||
- %core.root_path%
|
||||
- .%core.php_ext%
|
||||
- @config
|
||||
- @request
|
||||
- @cache.driver
|
||||
- @avatar.driver_collection
|
||||
- @service_container
|
||||
|
||||
|
|
|
@ -20,11 +20,7 @@ if (!defined('IN_PHPBB'))
|
|||
*/
|
||||
class phpbb_avatar_manager
|
||||
{
|
||||
protected $phpbb_root_path;
|
||||
protected $phpEx;
|
||||
protected $config;
|
||||
protected $request;
|
||||
protected $cache;
|
||||
protected static $valid_drivers = false;
|
||||
protected $avatar_drivers;
|
||||
protected $container;
|
||||
|
@ -40,13 +36,9 @@ class phpbb_avatar_manager
|
|||
* @param array $avatar_drivers Avatar drivers passed via the service container
|
||||
* @param object $container Container object
|
||||
*/
|
||||
public function __construct($phpbb_root_path, $phpEx, phpbb_config $config, phpbb_request $request, phpbb_cache_driver_interface $cache, $avatar_drivers, $container)
|
||||
public function __construct(phpbb_config $config, $avatar_drivers, $container)
|
||||
{
|
||||
$this->phpbb_root_path = $phpbb_root_path;
|
||||
$this->phpEx = $phpEx;
|
||||
$this->config = $config;
|
||||
$this->request = $request;
|
||||
$this->cache = $cache;
|
||||
$this->avatar_drivers = $avatar_drivers;
|
||||
$this->container = $container;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue