Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
clean code
  • Loading branch information
ivanhrytsaim committed Mar 11, 2025
commit 1947e4c7a32894128af650699b043ceabc65a6bf
10 changes: 0 additions & 10 deletions Observer/AdminSystemConfigChangedSection.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

namespace Magefan\SpeedOptimization\Observer;

use Magefan\Community\Model\SystemConfigAutoKeyManager;
use Magefan\SpeedOptimization\Model\Config;
use Magento\Config\Model\Config\Structure\Element\Field;
use Magento\Config\Model\Config\Structure\Element\Group;
Expand Down Expand Up @@ -126,8 +125,6 @@ class AdminSystemConfigChangedSection implements ObserverInterface
*/
private $config;

private $autoKeyManager;

/**
* @param ScopeConfigInterface $scopeConfig
* @param ConfigLoader $configLoader
Expand All @@ -138,7 +135,6 @@ class AdminSystemConfigChangedSection implements ObserverInterface
* @param MagentoConfig $magentoConfig
* @param ReinitableConfigInterface $appConfig
* @param Config $config
* @param Magefan\Community\Model\SystemConfigAutoKeyManager $autoKeyManager
* @param SettingChecker|null $settingChecker
*/
public function __construct(
Expand All @@ -151,7 +147,6 @@ public function __construct(
MagentoConfig $magentoConfig,
ReinitableConfigInterface $appConfig,
Config $config,
SystemConfigAutoKeyManager $autoKeyManager,
SettingChecker $settingChecker = null
) {
$this->scopeConfig = $scopeConfig;
Expand All @@ -163,7 +158,6 @@ public function __construct(
$this->magentoConfig = $magentoConfig;
$this->appConfig = $appConfig;
$this->config = $config;
$this->autoKeyManager = $autoKeyManager;
$this->settingChecker = $settingChecker ?: ObjectManager::getInstance()->get(SettingChecker::class);
}

Expand All @@ -185,10 +179,6 @@ public function execute(Observer $observer)

$groups = $this->scopeConfig->getValue('mfspeedoptimizations', $this->scope, $this->scopeCode);

if (isset($groups['general']['key'])) {
$this->autoKeyManager->execute('mfspeedoptimizations', $groups['general']['key']);
}

if (!isset($groups['css'])) {
return;
}
Expand Down
19 changes: 0 additions & 19 deletions etc/adminhtml/di.xml

This file was deleted.