From ff9e415fb23ae06aa68a73e2c3dcf32ff092444b Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Mon, 12 Jan 2015 14:44:22 +1300 Subject: Simplified get from container with new shorter method --- plugins/CorePluginsAdmin/PluginInstaller.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/CorePluginsAdmin/PluginInstaller.php') diff --git a/plugins/CorePluginsAdmin/PluginInstaller.php b/plugins/CorePluginsAdmin/PluginInstaller.php index e95f7f1d74..ed140d27bc 100644 --- a/plugins/CorePluginsAdmin/PluginInstaller.php +++ b/plugins/CorePluginsAdmin/PluginInstaller.php @@ -32,7 +32,7 @@ class PluginInstaller public function installOrUpdatePluginFromMarketplace() { - $tmpPluginPath = StaticContainer::getContainer()->get('path.tmp') . '/latest/plugins/'; + $tmpPluginPath = StaticContainer::get('path.tmp') . '/latest/plugins/'; $tmpPluginZip = $tmpPluginPath . $this->pluginName . '.zip'; $tmpPluginFolder = $tmpPluginPath . $this->pluginName; @@ -63,7 +63,7 @@ class PluginInstaller public function installOrUpdatePluginFromFile($pathToZip) { - $tmpPluginFolder = StaticContainer::getContainer()->get('path.tmp') . self::PATH_TO_DOWNLOAD . $this->pluginName; + $tmpPluginFolder = StaticContainer::get('path.tmp') . self::PATH_TO_DOWNLOAD . $this->pluginName; try { $this->makeSureFoldersAreWritable(); @@ -97,7 +97,7 @@ class PluginInstaller private function makeSureFoldersAreWritable() { Filechecks::dieIfDirectoriesNotWritable(array( - StaticContainer::getContainer()->get('path.tmp') . self::PATH_TO_DOWNLOAD, + StaticContainer::get('path.tmp') . self::PATH_TO_DOWNLOAD, self::PATH_TO_EXTRACT )); } -- cgit v1.2.3