diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-01-12 04:44:22 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-01-12 04:44:22 +0300 |
commit | ff9e415fb23ae06aa68a73e2c3dcf32ff092444b (patch) | |
tree | 5aa0963d3283010a14e67107736f218765dd2005 /plugins/CorePluginsAdmin/PluginInstaller.php | |
parent | 636d5400a7aee9fff5b3966b06c5d4e248ce825c (diff) |
Simplified get from container with new shorter method
Diffstat (limited to 'plugins/CorePluginsAdmin/PluginInstaller.php')
-rw-r--r-- | plugins/CorePluginsAdmin/PluginInstaller.php | 6 |
1 files changed, 3 insertions, 3 deletions
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 )); } |