File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 55namespace NuonicPluginInstaller ;
66
77use Doctrine \DBAL \Connection ;
8+ use NuonicPluginInstaller \Action \LoadIndexAction ;
9+ use NuonicPluginInstaller \Action \RefreshAction ;
10+ use NuonicPluginInstaller \Config \PluginConfigService ;
811use Shopware \Core \Framework \Plugin ;
12+ use Shopware \Core \Framework \Plugin \Context \ActivateContext ;
13+ use Shopware \Core \Framework \Plugin \Context \InstallContext ;
914use Shopware \Core \Framework \Plugin \Context \UninstallContext ;
15+ use Shopware \Core \System \SystemConfig \SystemConfigService ;
1016use Symfony \Component \Config \FileLocator ;
1117use Symfony \Component \Config \Loader \DelegatingLoader ;
1218use Symfony \Component \Config \Loader \LoaderResolver ;
@@ -47,4 +53,14 @@ public function uninstall(UninstallContext $uninstallContext): void
4753 $ connection ->executeStatement ('DROP TABLE IF EXISTS nuonic_available_opensource_plugin_translation ' );
4854 $ connection ->executeStatement ('DROP TABLE IF EXISTS nuonic_available_opensource_plugin ' );
4955 }
56+
57+ public function activate (ActivateContext $ activateContext ): void
58+ {
59+ $ this ->getRefreshAction ()->execute ($ activateContext ->getContext ());
60+ }
61+
62+ private function getRefreshAction (): RefreshAction
63+ {
64+ return $ this ->container ->get (RefreshAction::class);
65+ }
5066}
You can’t perform that action at this time.
0 commit comments