src/Resolver.php
public function setPrecedence(string $module, int $precedence)
    {
        foreach ($this->resolvers as $type => $resolver)
        {
            try
            {
                $resolver['resolver']->setPrecedence($module, $precedence);
            }
            catch (\InvalidArgumentException $e)
            {} // Not all resolvers may contain this module
        }

        $this->modules[$module]['precedence'] = $precedence;

        // No longer sorted, probably
        $this->sorted = false;
        
        return $this;
    }
public function setPrecedence(string $module, int $precedence)
    {
        foreach ($this->resolvers as $type => $resolver)
        {
            try
            {
                $resolver['resolver']->setPrecedence($module, $precedence);
            }
            catch (\InvalidArgumentException $e)
            {} // Not all resolvers may contain this module
        }

        $this->modules[$module]['precedence'] = $precedence;

        // No longer sorted, probably
        $this->sorted = false;
        
        return $this;
    }
Set the precedence for a module on all resolvers.
@param string $module The name of the module.
@param int $precedence The precedence value, used to order the modules.
Lower values come first.
@return Resolver Provides fluent interface