summaryrefslogtreecommitdiff
path: root/app/Core/Tool.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Tool.php')
-rw-r--r--app/Core/Tool.php21
1 files changed, 0 insertions, 21 deletions
diff --git a/app/Core/Tool.php b/app/Core/Tool.php
index c010d932..ade99cad 100644
--- a/app/Core/Tool.php
+++ b/app/Core/Tool.php
@@ -2,8 +2,6 @@
namespace Core;
-use Pimple\Container;
-
/**
* Tool class
*
@@ -33,23 +31,4 @@ class Tool
fclose($fp);
}
}
-
- /**
- * Load and register a model
- *
- * @static
- * @access public
- * @param Pimple\Container $container Container instance
- * @param string $name Model name
- * @return mixed
- */
- public static function loadModel(Container $container, $name)
- {
- if (! isset($container[$name])) {
- $class = '\Model\\'.ucfirst($name);
- $container[$name] = new $class($container);
- }
-
- return $container[$name];
- }
}