src/Container/Container.php
public function addResolver(ResolverInterface $resolver, $priority = 0)
    {
        if (!isset($this->prioritizedResolvers[$priority])) {
            $this->prioritizedResolvers[$priority] = [];
        }

        array_push($this->prioritizedResolvers[$priority], $resolver);
        krsort($this->prioritizedResolvers);
    }
public function addResolver(ResolverInterface $resolver, $priority = 0)
    {
        if (!isset($this->prioritizedResolvers[$priority])) {
            $this->prioritizedResolvers[$priority] = [];
        }

        array_push($this->prioritizedResolvers[$priority], $resolver);
        krsort($this->prioritizedResolvers);
    }
Add a resolver

@param ResolverInterface $resolver
@param int $priority                 Higher priority means it will be used before one
with a lower priority.