◆ __construct()
      
        
          | __construct  | 
          ( | 
            | 
          $uri_template,  | 
        
        
           | 
           | 
            | 
          $conditions = []  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ inject()
◆ match()
      
        
          | match  | 
          ( | 
            | 
          $uri,  | 
        
        
           | 
           | 
          &  | 
          $parameters = null  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Tests whether an uri matches a template.
The template may contain placeholders by prefixing an appropriate, unique placeholder name with a colon (:).
$template = '/hello/:name';
If the uri matches the template, all evaluated placeholders will be stored in the parameters array.
- Parameters
 - 
  
    | String | $uri | The uri to test  | 
    | Array | $parameters | Stores evaluated parameters on match (optional) | 
  
   
- Returns
 - bool Returns true if the uri matches the template 
 
 
 
The documentation for this class was generated from the following file: