protected function getDependencyDefaultValue($dependency, $params, $resolving, $isRoute)
    {
        if ($isRoute) {
            if(isset($params[$dependency->name])) {
                $resolving[] = $params[$dependency->name];
            } else {
                $resolving[] = $dependency->getDefaultValue();
            }
            
            return $resolving;
        } else {
            $resolving[] = $dependency->getDefaultValue();

            return $resolving;
        }
    }
protected function getDependencyDefaultValue($dependency, $params, $resolving, $isRoute)
    {
        if ($isRoute) {
            if(isset($params[$dependency->name])) {
                $resolving[] = $params[$dependency->name];
            } else {
                $resolving[] = $dependency->getDefaultValue();
            }
            
            return $resolving;
        } else {
            $resolving[] = $dependency->getDefaultValue();

            return $resolving;
        }
    }
protected function getDependencyDefaultValue ( $ dependency , $ params , $ resolving , $ isRoute ) { if ( $ isRoute ) { if ( isset ( $ params [ $ dependency -> name ] ) ) { $ resolving [ ] = $ params [ $ dependency -> name ] ; } else { $ resolving [ ] = $ dependency -> getDefaultValue ( ) ; } return $ resolving ; } else { $ resolving [ ] = $ dependency -> getDefaultValue ( ) ; return $ resolving ; } }
Get dependency default value.

@param $dependency
@param $params
@param $resolving
@param $isRoute

@return array
Get dependency default value .