'success' => true,
'data' =>
array_values($plugins),
'error' =>
$error,
]);
} /**
* @return void
*/
public function toggleSafeModeAction() { $plugins =
$this->
getThirdPartyPluginsQuery()->
getQuery()->
getResult(AbstractQuery::HYDRATE_OBJECT
);
$pluginsInSafeMode =
$this->
getPluginsInSafeMode($plugins);
$installer =
$this->container->
get(InstallerService::
class);
if ($pluginsInSafeMode) { foreach ($pluginsInSafeMode as $plugin) { $plugin->
setInSafeMode(false
);
if (!
$plugin->
getActive()) { $installer->
activatePlugin($plugin);
}