File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 55namespace NuonicPluginInstaller ;
66
77use Doctrine \DBAL \Connection ;
8+ use NuonicPluginInstaller \Action \RefreshAction ;
89use Shopware \Core \Framework \Plugin ;
10+ use Shopware \Core \Framework \Plugin \Context \ActivateContext ;
911use Shopware \Core \Framework \Plugin \Context \UninstallContext ;
1012use Symfony \Component \Config \FileLocator ;
1113use Symfony \Component \Config \Loader \DelegatingLoader ;
@@ -47,4 +49,14 @@ public function uninstall(UninstallContext $uninstallContext): void
4749 $ connection ->executeStatement ('DROP TABLE IF EXISTS nuonic_available_opensource_plugin_translation ' );
4850 $ connection ->executeStatement ('DROP TABLE IF EXISTS nuonic_available_opensource_plugin ' );
4951 }
52+
53+ public function activate (ActivateContext $ activateContext ): void
54+ {
55+ $ this ->getRefreshAction ()->execute ($ activateContext ->getContext ());
56+ }
57+
58+ private function getRefreshAction (): RefreshAction
59+ {
60+ return $ this ->container ->get (RefreshAction::class);
61+ }
5062}
You can’t perform that action at this time.
0 commit comments