From: Thomas Müller Date: Mon, 7 Oct 2013 07:38:35 +0000 (+0200) Subject: move l10n factory into private X-Git-Tag: v6.0.0alpha2~74^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4e0c4c8f34d3eca1cecd50401d68161af9adfb8e;p=nextcloud-server.git move l10n factory into private --- diff --git a/lib/l10n/factory.php b/lib/l10n/factory.php deleted file mode 100644 index ba168872acd..00000000000 --- a/lib/l10n/factory.php +++ /dev/null @@ -1,34 +0,0 @@ - - * This file is licensed under the Affero General Public License version 3 or - * later. - * See the COPYING-README file. - * - */ - -namespace OC\L10N; - -/** - * TODO: Description - */ -class Factory { - /** - * cached instances - */ - protected $instances = array(); - - /** - * get an L10N instance - * @param $app string - * @param $lang string|null - * @return OC_L10N - */ - public function get($app) { - if (!isset($this->instances[$app])) { - $this->instances[$app] = new \OC_L10N($app); - } - return $this->instances[$app]; - } - -} diff --git a/lib/private/l10n/factory.php b/lib/private/l10n/factory.php new file mode 100644 index 00000000000..ba168872acd --- /dev/null +++ b/lib/private/l10n/factory.php @@ -0,0 +1,34 @@ + + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + * + */ + +namespace OC\L10N; + +/** + * TODO: Description + */ +class Factory { + /** + * cached instances + */ + protected $instances = array(); + + /** + * get an L10N instance + * @param $app string + * @param $lang string|null + * @return OC_L10N + */ + public function get($app) { + if (!isset($this->instances[$app])) { + $this->instances[$app] = new \OC_L10N($app); + } + return $this->instances[$app]; + } + +}