diff --git a/src/Di.php b/src/Di.php index daa16088..ffe8d8de 100644 --- a/src/Di.php +++ b/src/Di.php @@ -174,6 +174,21 @@ public function instanceManager() return $this->instanceManager; } + /** + * Utility method used to retrieve the class of a particular instance. This is here to allow extending classes to + * override how class names are resolved + * + * @internal this method is used by the ServiceLocator\DependencyInjectorProxy class to interact with instances + * and is a hack to be used internally until a major refactor does not split the `resolveMethodParameters`. Do not + * rely on its functionality. + * @param Object $instance + * @return string + */ + protected function getClass($instance) + { + return get_class($instance); + } + /** * @param $name * @param array $params @@ -870,21 +885,6 @@ protected function resolveMethodParameters($class, $method, array $callTimeUserP return $resolvedParams; // return ordered list of parameters } - /** - * Utility method used to retrieve the class of a particular instance. This is here to allow extending classes to - * override how class names are resolved - * - * @internal this method is used by the ServiceLocator\DependencyInjectorProxy class to interact with instances - * and is a hack to be used internally until a major refactor does not split the `resolveMethodParameters`. Do not - * rely on its functionality. - * @param Object $instance - * @return string - */ - protected function getClass($instance) - { - return get_class($instance); - } - /** * Checks if the object has this class as one of its parents *