|
@@ 180-182 (lines=3) @@
|
| 177 |
|
$plugin->setIsEnabled(true); |
| 178 |
|
$pluginService = $this->container->get($plugin->getPluginId()); |
| 179 |
|
|
| 180 |
|
if ($pluginService instanceof StatusAwarePluginInterface && !isset($this->enabledPlugins[$plugin->getPluginId()])) { |
| 181 |
|
$pluginService->setStatus(true); |
| 182 |
|
} |
| 183 |
|
|
| 184 |
|
$this->console->getConsoleOutput() |
| 185 |
|
->writeln("<info>Plugin <comment>'{$plugin->getPluginId()}'</comment> is enabled with providers :</info>"); |
|
@@ 208-214 (lines=7) @@
|
| 205 |
|
$this->dataProviderManager->deletePlugin($provider, $plugin->getPluginId()); |
| 206 |
|
} |
| 207 |
|
|
| 208 |
|
if (isset($this->enabledPlugins[$plugin->getPluginId()])) { |
| 209 |
|
unset($this->enabledPlugins[$plugin->getPluginId()]); |
| 210 |
|
|
| 211 |
|
if ($pluginService instanceof StatusAwarePluginInterface) { |
| 212 |
|
$pluginService->setStatus(true); |
| 213 |
|
} |
| 214 |
|
} |
| 215 |
|
} |
| 216 |
|
|
| 217 |
|
/** |