Commit 87053f79 authored by Tino Goratsch's avatar Tino Goratsch

fix errors reported by PHPStan

parent df006f0d
Pipeline #44906781 passed with stages
in 2 minutes and 53 seconds
......@@ -17,7 +17,6 @@ use ACP3\Installer\Modules\Install\Helpers\Install;
use ACP3\Installer\Modules\Install\Helpers\ModuleInstaller;
use ACP3\Modules\ACP3\System\Installer\Schema;
use ACP3\Modules\ACP3\Users\Model\UserModel;
use Psr\Log\LoggerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
class InstallModel
......@@ -46,10 +45,6 @@ class InstallModel
* @var Vendor
*/
protected $vendor;
/**
* @var LoggerInterface
*/
private $logger;
/**
* @var \ACP3\Core\Helpers\Secure
*/
......@@ -58,7 +53,6 @@ class InstallModel
/**
* InstallModel constructor.
*
* @param LoggerInterface $logger
* @param ContainerInterface $container
* @param ApplicationPath $appPath
* @param Vendor $vendor
......@@ -68,7 +62,6 @@ class InstallModel
* @param ModuleInstaller $moduleInstaller
*/
public function __construct(
LoggerInterface $logger,
ContainerInterface $container,
ApplicationPath $appPath,
Vendor $vendor,
......@@ -84,7 +77,6 @@ class InstallModel
$this->translator = $translator;
$this->installHelper = $installHelper;
$this->moduleInstaller = $moduleInstaller;
$this->logger = $logger;
}
/**
......@@ -116,7 +108,6 @@ class InstallModel
public function updateContainer(RequestInterface $request)
{
$this->container = ServiceContainerBuilder::create(
$this->logger,
$this->appPath,
$request->getSymfonyRequest(),
$this->container->getParameter('core.environment'),
......
......@@ -2,7 +2,6 @@ services:
install.model.install_model:
class: ACP3\Installer\Modules\Install\Model\InstallModel
arguments:
- '@core.logger.system_logger'
- '@service_container'
- '@core.environment.application_path'
- '@core.modules.vendors'
......
......@@ -10,7 +10,6 @@ namespace ACP3\Installer\Modules\Update\Model;
use ACP3\Core\Http\RequestInterface;
use ACP3\Installer\Core\DependencyInjection\ServiceContainerBuilder;
use ACP3\Installer\Core\Environment\ApplicationPath;
use Psr\Log\LoggerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
class SchemaUpdateModel
......@@ -27,26 +26,19 @@ class SchemaUpdateModel
* @var \ACP3\Installer\Core\Environment\ApplicationPath
*/
private $appPath;
/**
* @var \Psr\Log\LoggerInterface
*/
private $logger;
/**
* ModuleUpdateModel constructor.
*
* @param \ACP3\Installer\Core\Environment\ApplicationPath $appPath
* @param \Psr\Log\LoggerInterface $logger
* @param \Symfony\Component\DependencyInjection\ContainerInterface $container
*/
public function __construct(
ApplicationPath $appPath,
LoggerInterface $logger,
ContainerInterface $container
) {
$this->container = $container;
$this->appPath = $appPath;
$this->logger = $logger;
}
/**
......@@ -57,7 +49,6 @@ class SchemaUpdateModel
public function updateContainer(RequestInterface $request)
{
$this->container = ServiceContainerBuilder::create(
$this->logger,
$this->appPath,
$request->getSymfonyRequest(),
$this->container->getParameter('core.environment'),
......
......@@ -3,5 +3,4 @@ services:
class: ACP3\Installer\Modules\Update\Model\SchemaUpdateModel
arguments:
- '@core.environment.application_path'
- '@core.logger.system_logger'
- '@service_container'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment