aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/install/helper/iohandler/factory.php
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-05-31 17:19:42 +0200
committerMate Bartus <mate.bartus@gmail.com>2015-07-08 01:28:08 +0200
commit06f4ebce1b1cc8ecd5ddd84f7d2705007a685de3 (patch)
tree23923bb100b08fe4a0e30c5a98cccad8f6148f42 /phpBB/phpbb/install/helper/iohandler/factory.php
parent524b98e7bd19bff7b12c7ba4c771d6d60d4300a6 (diff)
downloadforums-06f4ebce1b1cc8ecd5ddd84f7d2705007a685de3.tar
forums-06f4ebce1b1cc8ecd5ddd84f7d2705007a685de3.tar.gz
forums-06f4ebce1b1cc8ecd5ddd84f7d2705007a685de3.tar.bz2
forums-06f4ebce1b1cc8ecd5ddd84f7d2705007a685de3.tar.xz
forums-06f4ebce1b1cc8ecd5ddd84f7d2705007a685de3.zip
[ticket/13740] CLI installer and fixes
[ci skip] PHPBB3-13740
Diffstat (limited to 'phpBB/phpbb/install/helper/iohandler/factory.php')
-rw-r--r--phpBB/phpbb/install/helper/iohandler/factory.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/phpbb/install/helper/iohandler/factory.php b/phpBB/phpbb/install/helper/iohandler/factory.php
index 0af75b78ae..7081af06a5 100644
--- a/phpBB/phpbb/install/helper/iohandler/factory.php
+++ b/phpBB/phpbb/install/helper/iohandler/factory.php
@@ -59,7 +59,7 @@ class factory
*/
public function get()
{
- switch ($this->environment)
+ if ($this->container->has('installer.helper.iohandler_' . $this->environment))
{
case 'ajax':
return $this->container->get('installer.helper.iohandler_ajax');
@@ -68,9 +68,14 @@ class factory
// @todo replace this
return $this->container->get('installer.helper.iohandler_ajax');
break;
+ case 'cli':
+ return $this->container->get('installer.helper.iohandler_cli');
+ break;
default:
throw new iohandler_not_implemented_exception();
break;
}
+
+ throw new iohandler_not_implemented_exception();
}
}