Component/Routing/Matcher.php
public function match(RouteCollection $collection, Request $request)
    {
        // Save collection and Request
        $this->collection   = $collection;
        $this->request      = $request;

        // Get candidates and ask Voter to decide which candidate mathes best
        return $this->voter->vote($this->getCandidates(), $request);
    }
public function match(RouteCollection $collection, Request $request)
    {
        // Save collection and Request
        $this->collection   = $collection;
        $this->request      = $request;

        // Get candidates and ask Voter to decide which candidate mathes best
        return $this->voter->vote($this->getCandidates(), $request);
    }
public function match ( RouteCollection $ collection , Request $ request ) { // Save collection and Request $ this -> collection = $ collection ; $ this -> request = $ request ; // Get candidates and ask Voter to decide which candidate mathes best return $ this -> voter -> vote ( $ this -> getCandidates ( ) , $ request ) ; }
Matches current Request to Route
Matches current Request to Route