Layton/Services/DependentService.php
public function getParams($reflectionClass, $method, $inherentNumber = 0)
    {
        $instances = [];
        if (!$reflectionClass->hasMethod($method)) {
            return $instances;
        }

        $reflection = $reflectionClass->getMethod($method);
        $reflectionParameters = $this->getReflectionParameters($reflection, $inherentNumber);

        foreach($reflectionParameters as $reflectionParameter) {
            $instances[] = $this->getDependentByParameter($reflectionParameter)->getInstance();
        }
        return $instances;
    }
public function getParams($reflectionClass, $method, $inherentNumber = 0)
    {
        $instances = [];
        if (!$reflectionClass->hasMethod($method)) {
            return $instances;
        }

        $reflection = $reflectionClass->getMethod($method);
        $reflectionParameters = $this->getReflectionParameters($reflection, $inherentNumber);

        foreach($reflectionParameters as $reflectionParameter) {
            $instances[] = $this->getDependentByParameter($reflectionParameter)->getInstance();
        }
        return $instances;
    }
public function getParams ( $ reflectionClass , $ method , $ inherentNumber = 0 ) { $ instances = [ ] ; if ( ! $ reflectionClass -> hasMethod ( $ method ) ) { return $ instances ; } $ reflection = $ reflectionClass -> getMethod ( $ method ) ; $ reflectionParameters = $ this -> getReflectionParameters ( $ reflection , $ inherentNumber ) ; foreach ( $ reflectionParameters as $ reflectionParameter ) { $ instances [ ] = $ this -> getDependentByParameter ( $ reflectionParameter ) -> getInstance ( ) ; } return $ instances ; }
instantiation param list of method and save

@param ReflectionClass $refClass
@param string $method
@param int inherentNumber

@return array
instantiation param list of method and save