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