protected function parseFromClassComment(\ReflectionClass $reflection)
    {
        $result       = [];
        $dependencies = self::getAnnotationReader()->getClassAnnotations($reflection);

        // Iterate the dependencies found ...
        /* @var $dependency \Doozr\Loader\Serviceloader\Annotation\Inject */
        foreach ($dependencies as $key => $dependency) {
            if (
                $dependency->type   === Doozr_Di_Constants::INJECTION_TYPE_CONSTRUCTOR &&
                $dependency->target !== Doozr_Di_Constants::CONSTRUCTOR_METHOD
            ) {
                $dependency->constructor = $dependency->target;
            } else {
                $dependency->constructor = Doozr_Di_Constants::CONSTRUCTOR_METHOD;
            }

            /*
            if (false === isset($result[$dependency->id])) {
                $result[$dependency->id] = [];
            }

            $result[$dependency->id][] = object_to_array($dependency);
            */

            $result[] = object_to_array($dependency);
        }

        return $result;
    }
protected function parseFromClassComment(\ReflectionClass $reflection)
    {
        $result       = [];
        $dependencies = self::getAnnotationReader()->getClassAnnotations($reflection);

        // Iterate the dependencies found ...
        /* @var $dependency \Doozr\Loader\Serviceloader\Annotation\Inject */
        foreach ($dependencies as $key => $dependency) {
            if (
                $dependency->type   === Doozr_Di_Constants::INJECTION_TYPE_CONSTRUCTOR &&
                $dependency->target !== Doozr_Di_Constants::CONSTRUCTOR_METHOD
            ) {
                $dependency->constructor = $dependency->target;
            } else {
                $dependency->constructor = Doozr_Di_Constants::CONSTRUCTOR_METHOD;
            }

            /*
            if (false === isset($result[$dependency->id])) {
                $result[$dependency->id] = [];
            }

            $result[$dependency->id][] = object_to_array($dependency);
            */

            $result[] = object_to_array($dependency);
        }

        return $result;
    }
protected function parseFromClassComment ( \ ReflectionClass $ reflection ) { $ result = [ ] ; $ dependencies = self :: getAnnotationReader ( ) -> getClassAnnotations ( $ reflection ) ; // Iterate the dependencies found ... /* @var $dependency \Doozr\Loader\Serviceloader\Annotation\Inject */ foreach ( $ dependencies as $ key => $ dependency ) { if ( $ dependency -> type === Doozr_Di_Constants :: INJECTION_TYPE_CONSTRUCTOR && $ dependency -> target !== Doozr_Di_Constants :: CONSTRUCTOR_METHOD ) { $ dependency -> constructor = $ dependency -> target ; } else { $ dependency -> constructor = Doozr_Di_Constants :: CONSTRUCTOR_METHOD ; } /*
            if (false === isset($result[$dependency->id])) {
                $result[$dependency->id] = [];
            }

            $result[$dependency->id][] = object_to_array($dependency);
            */ $ result [ ] = object_to_array ( $ dependency ) ; } return $ result ; }
Parses the dependencies from a given reflection out of the className' comment.

@param \ReflectionClass $reflection The reflection instance to parse from

@author Benjamin Carl <opensource@clickalicious.de>

@return array An raw array containing the dependencies indexed
Parses the dependencies from a given reflection out of the className comment .