match() 공개 메소드

If matched, set the matches in the route
public match ( array $params ) : array | null
$params array
리턴 array | null
예제 #1
0
 public function testGetMatchedParamReturnsDefaultValueIfParameterIsNotMatched()
 {
     $route = new Route('foo', 'foo [<bar>]');
     $matches = $route->match(['foo']);
     $this->assertNull($route->getMatchedParam('bar'));
 }