src/LdapTools/Resolver/ParameterResolver.php
protected function resolveParametersForAttribute($attribute, array $parameters)
    {
        $children = $this->getDependentAttributes($parameters);

        if (!empty($children)) {
            foreach ($children as $child) {
                $this->resolveParametersForAttribute($child, $this->requirements[$child]);
            }
        }

        $this->doResolveParametersForAttribute($attribute, $parameters);
        $remainingParameters = self::getParametersInValue($this->attributes[$attribute]);

        // A second pass may be required for attributes it depended on that contained parameters not based on attributes
        if (!empty($remainingParameters)) {
            $this->doResolveParametersForAttribute($attribute, $remainingParameters);
        }

        $this->resolvedParameters[] = $attribute;
    }
protected function resolveParametersForAttribute($attribute, array $parameters)
    {
        $children = $this->getDependentAttributes($parameters);

        if (!empty($children)) {
            foreach ($children as $child) {
                $this->resolveParametersForAttribute($child, $this->requirements[$child]);
            }
        }

        $this->doResolveParametersForAttribute($attribute, $parameters);
        $remainingParameters = self::getParametersInValue($this->attributes[$attribute]);

        // A second pass may be required for attributes it depended on that contained parameters not based on attributes
        if (!empty($remainingParameters)) {
            $this->doResolveParametersForAttribute($attribute, $remainingParameters);
        }

        $this->resolvedParameters[] = $attribute;
    }
protected function resolveParametersForAttribute ( $ attribute , array $ parameters ) { $ children = $ this -> getDependentAttributes ( $ parameters ) ; if ( ! empty ( $ children ) ) { foreach ( $ children as $ child ) { $ this -> resolveParametersForAttribute ( $ child , $ this -> requirements [ $ child ] ) ; } } $ this -> doResolveParametersForAttribute ( $ attribute , $ parameters ) ; $ remainingParameters = self :: getParametersInValue ( $ this -> attributes [ $ attribute ] ) ; // A second pass may be required for attributes it depended on that contained parameters not based on attributes if ( ! empty ( $ remainingParameters ) ) { $ this -> doResolveParametersForAttribute ( $ attribute , $ remainingParameters ) ; } $ this -> resolvedParameters [ ] = $ attribute ; }
Given a specific attribute with parameters, this will resolve it while first resolving any dependent attributes
that first need to be resolved.

@param $attribute
@param array $parameters
Given a specific attribute with parameters this will resolve it while first resolving any dependent attributes that first need to be resolved .