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;
        }
    }