CanonicalUrlResolver
class CanonicalUrlResolver implements UrlResolverInterface (View source)
Properties
| protected Request | $request | ||
| protected Application | $app | ||
| protected Url | $cached | 
Methods
                    URLInterface
                
                
                    resolve(array $arguments, URLInterface $resolved = null)
        
                                            
                
            Resolve url's from any type of input.
                    clearCached()
        
                                            
                
            Clear the cached canonical URL.
Details
        
                            
    __construct(Application $app, Request $request)
        
    
    CanonicalUrlResolver constructor.
        
                            URLInterface
    resolve(array $arguments, URLInterface $resolved = null)
        
    
    Resolve url's from any type of input.
This method MUST either return a \League\URL\URL when a url is resolved
or null when a url cannot be resolved.
If the first argument provided is a page object, we will use that object to determine the site tree (and thus the canonical url) to use.
        
                            
    clearCached()
        
    
    Clear the cached canonical URL.