Extract Theme related methods from SettingsController as ThemeController
I want to avoid the SettingsController becoming some kind of a god class so in this step, I extracted themejson-related stuff to an extra class. In the future, we should also move methods for manipulating CSS to a helper. [MAILPOET-5741]
This commit is contained in:
committed by
Rostislav Wolný
parent
aa658782fb
commit
b724ef4ac2
@@ -21,7 +21,7 @@ class FlexLayoutRendererTest extends \MailPoetTest {
|
||||
|
||||
public function _before(): void {
|
||||
parent::_before();
|
||||
$this->settingsController = new SettingsController();
|
||||
$this->settingsController = $this->diContainer->get(SettingsController::class);
|
||||
$this->registry = new BlocksRegistry($this->settingsController);
|
||||
$this->renderer = new FlexLayoutRenderer();
|
||||
$this->registry->addBlockRenderer('dummy/block', new DummyBlockRenderer());
|
||||
|
Reference in New Issue
Block a user