| @@ 129-136 (lines=8) @@ | ||
| 126 | } |
|
| 127 | ||
| 128 | /* Once all is connected send status update */ |
|
| 129 | foreach ($enableNotify as $pluginId => $plugin) { |
|
| 130 | if (!is_null($plugin)) { |
|
| 131 | $this->console->getConsoleOutput()->writeln("<info>Enabling plugin : $pluginId</info>"); |
|
| 132 | if ($plugin instanceof StatusAwarePluginInterface) { |
|
| 133 | $plugin->setStatus(true); |
|
| 134 | } |
|
| 135 | } |
|
| 136 | } |
|
| 137 | foreach ($disableNotify as $pluginId => $plugin) { |
|
| 138 | if (!is_null($plugin)) { |
|
| 139 | $this->console->writeln("<info>Disabling plugin : $pluginId</info>"); |
|
| @@ 137-144 (lines=8) @@ | ||
| 134 | } |
|
| 135 | } |
|
| 136 | } |
|
| 137 | foreach ($disableNotify as $pluginId => $plugin) { |
|
| 138 | if (!is_null($plugin)) { |
|
| 139 | $this->console->writeln("<info>Disabling plugin : $pluginId</info>"); |
|
| 140 | if ($plugin instanceof StatusAwarePluginInterface) { |
|
| 141 | $plugin->setStatus(false); |
|
| 142 | } |
|
| 143 | } |
|
| 144 | } |
|
| 145 | } |
|
| 146 | ||
| 147 | /** |
|