Coduo\TuTu\Config\Resolver::__construct PHP Method

__construct() public method

public __construct ( Coduo\TuTu\Config\Loader\Loader $loader, Coduo\TuTu\Request\MatchingPolicy $matchingPolicy )
$loader Coduo\TuTu\Config\Loader\Loader
$matchingPolicy Coduo\TuTu\Request\MatchingPolicy
    public function __construct(Loader $loader, MatchingPolicy $matchingPolicy)
    {
        $this->configs = [];
        foreach ($loader->getResponsesArray() as $responseArrayConfig) {
            $this->configs[] = Element::fromArray($responseArrayConfig);
        }
        $this->matchingPolicy = $matchingPolicy;
    }