Skip to content
Snippets Groups Projects
Commit 74e31434 authored by Yas Naoi's avatar Yas Naoi
Browse files

Issue #3220465 by yas, sekinet: Fix ArgumentCountError: Too few arguments to...

Issue #3220465 by yas, sekinet: Fix ArgumentCountError: Too few arguments to function Drupal\aws_cloud\Form\Ec2\AwsCloudContentForm::__construct()
parent 6e416ae6
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ namespace Drupal\aws_cloud\Form\Ec2;
use Drupal\aws_cloud\Service\Ec2\Ec2ServiceInterface;
use Drupal\cloud\Plugin\cloud\config\CloudConfigPluginManagerInterface;
use Drupal\cloud\Service\CloudServiceInterface;
use Drupal\cloud\Service\EntityLinkRendererInterface;
use Drupal\Component\Datetime\TimeInterface;
use Drupal\Core\Cache\CacheBackendInterface;
......@@ -14,9 +15,9 @@ use Drupal\Core\Entity\EntityTypeManager;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Messenger\Messenger;
use Drupal\Core\Plugin\CachedDiscoveryClearerInterface;
use Drupal\Core\Render\RendererInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Render\Renderer;
use Drupal\cloud\Service\AnsiStringRendererInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
......@@ -63,8 +64,10 @@ class InstanceConsoleOutputForm extends AwsCloudContentForm {
* The route match.
* @param \Drupal\Core\Datetime\DateFormatterInterface $date_formatter
* The date formatter.
* @param \Drupal\Core\Render\Renderer $renderer
* @param \Drupal\Core\Render\RendererInterface $renderer
* The general renderer.
* @param \Drupal\cloud\Service\CloudServiceInterface $cloud_service
* The Cloud service.
* @param \Drupal\cloud\Service\AnsiStringRendererInterface $ansi_string_renderer
* The ANSI string renderer.
*/
......@@ -81,7 +84,8 @@ class InstanceConsoleOutputForm extends AwsCloudContentForm {
AccountInterface $current_user,
RouteMatchInterface $route_match,
DateFormatterInterface $date_formatter,
Renderer $renderer,
RendererInterface $renderer,
CloudServiceInterface $cloud_service,
AnsiStringRendererInterface $ansi_string_renderer) {
parent::__construct(
$ec2_service,
......@@ -97,7 +101,8 @@ class InstanceConsoleOutputForm extends AwsCloudContentForm {
$current_user,
$route_match,
$date_formatter,
$renderer
$renderer,
$cloud_service
);
$this->ansiStringRenderer = $ansi_string_renderer;
......@@ -122,6 +127,7 @@ class InstanceConsoleOutputForm extends AwsCloudContentForm {
$container->get('current_route_match'),
$container->get('date.formatter'),
$container->get('renderer'),
$container->get('cloud'),
$container->get('cloud.ansi_string_renderer')
);
}
......
......@@ -3,6 +3,7 @@
namespace Drupal\aws_cloud\Form\Ec2;
use Drupal\cloud\Plugin\cloud\config\CloudConfigPluginManagerInterface;
use Drupal\cloud\Service\CloudServiceInterface;
use Drupal\cloud\Service\EntityLinkRendererInterface;
use Drupal\Component\Datetime\TimeInterface;
use Drupal\Core\Cache\CacheBackendInterface;
......@@ -14,9 +15,9 @@ use Drupal\Core\Entity\EntityTypeManager;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Messenger\Messenger;
use Drupal\Core\Plugin\CachedDiscoveryClearerInterface;
use Drupal\Core\Render\RendererInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Render\Renderer;
use Drupal\aws_cloud\Service\Ec2\Ec2ServiceInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
......@@ -63,8 +64,10 @@ class InstanceMonitorForm extends AwsCloudContentForm {
* The route match.
* @param \Drupal\Core\Datetime\DateFormatterInterface $date_formatter
* The date formatter.
* @param \Drupal\Core\Render\Renderer $renderer
* @param \Drupal\Core\Render\RendererInterface $renderer
* The general renderer.
* @param \Drupal\cloud\Service\CloudServiceInterface $cloud_service
* The Cloud service.
* @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The factory for configuration objects.
*/
......@@ -81,7 +84,8 @@ class InstanceMonitorForm extends AwsCloudContentForm {
AccountInterface $current_user,
RouteMatchInterface $route_match,
DateFormatterInterface $date_formatter,
Renderer $renderer,
RendererInterface $renderer,
CloudServiceInterface $cloud_service,
ConfigFactoryInterface $config_factory) {
parent::__construct(
$ec2_service,
......@@ -97,7 +101,8 @@ class InstanceMonitorForm extends AwsCloudContentForm {
$current_user,
$route_match,
$date_formatter,
$renderer
$renderer,
$cloud_service
);
$this->configFactory = $config_factory;
......@@ -122,6 +127,7 @@ class InstanceMonitorForm extends AwsCloudContentForm {
$container->get('current_route_match'),
$container->get('date.formatter'),
$container->get('renderer'),
$container->get('cloud'),
$container->get('config.factory')
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment