Skip to content

Commit 088d354

Browse files
committed
ACMS-4533: Fix PHPStan issue.
1 parent 320b880 commit 088d354

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

modules/acquia_cms_site_studio/src/Form/AcquiaCmsSiteStudioSiteConfigureForm.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Drupal\acquia_cms_site_studio\Form;
44

55
use Drupal\Core\Config\ConfigFactoryInterface;
6+
use Drupal\Core\Config\TypedConfigManagerInterface;
67
use Drupal\Core\Form\ConfigFormBase;
78
use Drupal\Core\Form\FormStateInterface;
89
use Symfony\Component\DependencyInjection\ContainerInterface;
@@ -27,8 +28,8 @@ class AcquiaCmsSiteStudioSiteConfigureForm extends ConfigFormBase {
2728
* @param string $apiUrl
2829
* The Site Studio api url.
2930
*/
30-
public function __construct(ConfigFactoryInterface $config_factory, string $apiUrl) {
31-
parent::__construct($config_factory);
31+
public function __construct(ConfigFactoryInterface $config_factory, string $apiUrl, TypedConfigManagerInterface $typed_config_manager) {
32+
parent::__construct($config_factory, $typed_config_manager);
3233
$this->apiUrl = $apiUrl;
3334
}
3435

@@ -45,7 +46,8 @@ public function getFormId() {
4546
public static function create(ContainerInterface $container) {
4647
return new static(
4748
$container->get('config.factory'),
48-
$container->get('cohesion.api.utils')->getAPIServerURL()
49+
$container->get('cohesion.api.utils')->getAPIServerURL(),
50+
$container->get("config.typed")
4951
);
5052
}
5153

0 commit comments

Comments
 (0)