From 4e0c4c8f34d3eca1cecd50401d68161af9adfb8e Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Mon, 7 Oct 2013 09:38:35 +0200 Subject: move l10n factory into private --- lib/l10n/factory.php | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 lib/l10n/factory.php (limited to 'lib/l10n') 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]; - } - -} -- cgit v1.2.3