|
@@ 176-178 (lines=3) @@
|
| 173 |
|
$plugin->setIsEnabled(true); |
| 174 |
|
$pluginService = $this->container->get($plugin->getPluginId()); |
| 175 |
|
|
| 176 |
|
if ($pluginService instanceof StatusAwarePluginInterface && !isset($this->enabledPlugins[$plugin->getPluginId()])) { |
| 177 |
|
$pluginService->setStatus(true); |
| 178 |
|
} |
| 179 |
|
|
| 180 |
|
$this->console->getConsoleOutput() |
| 181 |
|
->writeln("<info>Plugin <comment>'{$plugin->getPluginId()}'</comment> is enabled with providers :</info>"); |
|
@@ 203-209 (lines=7) @@
|
| 200 |
|
$this->dataProviderManager->deletePlugin($provider, $plugin->getPluginId()); |
| 201 |
|
} |
| 202 |
|
|
| 203 |
|
if (isset($this->enabledPlugins[$plugin->getPluginId()])) { |
| 204 |
|
unset($this->enabledPlugins[$plugin->getPluginId()]); |
| 205 |
|
|
| 206 |
|
if ($pluginService instanceof StatusAwarePluginInterface) { |
| 207 |
|
$pluginService->setStatus(true); |
| 208 |
|
} |
| 209 |
|
} |
| 210 |
|
} |
| 211 |
|
|
| 212 |
|
/** |