summaryrefslogtreecommitdiff
path: root/app/Core/Base.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Base.php')
-rw-r--r--app/Core/Base.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/Core/Base.php b/app/Core/Base.php
index 20a2d391..6931d93a 100644
--- a/app/Core/Base.php
+++ b/app/Core/Base.php
@@ -185,10 +185,10 @@ abstract class Base
}
/**
- * Load automatically models
+ * Load automatically dependencies
*
* @access public
- * @param string $name Model name
+ * @param string $name Class name
* @return mixed
*/
public function __get($name)
@@ -206,7 +206,6 @@ abstract class Base
*/
public static function getInstance(Container $container)
{
- $self = new static($container);
- return $self;
+ return new static($container);
}
}