Skip to content

Commit

Permalink
ACMS-000: Update site studio to use 8.1.0 version. (#1931)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshreeputra authored Mar 7, 2025
1 parent d8ee4a3 commit ca59bb2
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 30 deletions.
50 changes: 25 additions & 25 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions modules/acquia_cms_site_studio/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"license": "GPL-2.0-or-later",
"type": "drupal-module",
"require": {
"acquia/cohesion": "~7.4.0 || ~7.5.0 || ~8.0.0",
"acquia/cohesion-theme": "~7.4.0 || ~7.5.0 || ~8.0.0",
"acquia/cohesion": "~7.4.0 || ~7.5.0 || ~8.0.0 || ~8.1.0",
"acquia/cohesion-theme": "~7.4.0 || ~7.5.0 || ~8.0.0 || ~8.1.0",
"drupal/acquia_cms_common": "^2.1.12 || ~3.2.12 || ^3.3.10",
"drupal/collapsiblock": "^4.0",
"drupal/node_revision_delete": "^2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Drupal\acquia_cms_site_studio\Form;

use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Config\TypedConfigManagerInterface;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
Expand All @@ -27,8 +28,8 @@ class AcquiaCmsSiteStudioSiteConfigureForm extends ConfigFormBase {
* @param string $apiUrl
* The Site Studio api url.
*/
public function __construct(ConfigFactoryInterface $config_factory, string $apiUrl) {
parent::__construct($config_factory);
public function __construct(ConfigFactoryInterface $config_factory, string $apiUrl, TypedConfigManagerInterface $typed_config_manager) {
parent::__construct($config_factory, $typed_config_manager);
$this->apiUrl = $apiUrl;
}

Expand All @@ -45,7 +46,8 @@ public function getFormId() {
public static function create(ContainerInterface $container) {
return new static(
$container->get('config.factory'),
$container->get('cohesion.api.utils')->getAPIServerURL()
$container->get('cohesion.api.utils')->getAPIServerURL(),
$container->get("config.typed")
);
}

Expand Down

0 comments on commit ca59bb2

Please sign in to comment.