public function getDependencies($params)
    {
        $deps = [];
        foreach ($params as $param) {
            $dependency = $param->getClass();
            if ($dependency !== null) {
                if ($dependency->name == 'Proem\Service\AssetManager' || $dependency->name == 'Proem\Service\AssetManagerInterface') {
                    $deps[] = $this;
                } else {
                    $deps[] = $this->resolve($dependency->name);
                }
            } else {
                if ($param->isDefaultValueAvailable()) {
                    $deps[] = $param->getDefaultValue();
                }
            }
        }
        return $deps;
    }
public function getDependencies($params)
    {
        $deps = [];
        foreach ($params as $param) {
            $dependency = $param->getClass();
            if ($dependency !== null) {
                if ($dependency->name == 'Proem\Service\AssetManager' || $dependency->name == 'Proem\Service\AssetManagerInterface') {
                    $deps[] = $this;
                } else {
                    $deps[] = $this->resolve($dependency->name);
                }
            } else {
                if ($param->isDefaultValueAvailable()) {
                    $deps[] = $param->getDefaultValue();
                }
            }
        }
        return $deps;
    }
public function getDependencies ( $ params ) { $ deps = [ ] ; foreach ( $ params as $ param ) { $ dependency = $ param -> getClass ( ) ; if ( $ dependency !== null ) { if ( $ dependency -> name == 'Proem\Service\AssetManager' || $ dependency -> name == 'Proem\Service\AssetManagerInterface' ) { $ deps [ ] = $ this ; } else { $ deps [ ] = $ this -> resolve ( $ dependency -> name ) ; } } else { if ( $ param -> isDefaultValueAvailable ( ) ) { $ deps [ ] = $ param -> getDefaultValue ( ) ; } } } return $ deps ; }
A simple helper to resolve dependencies given an array of dependents.

@param array $dependencies
A simple helper to resolve dependencies given an array of dependents .