Class Router

Concrete\Core\Routing\Router implements Concrete\Core\Routing\RouterInterface

Methods summary

public
public Symfony\Component\Routing\RequestContext
# getContext( )
public
# setContext( Symfony\Component\Routing\RequestContext $context )
public Symfony\Component\Routing\Generator\UrlGeneratorInterface
# getGenerator( )
public
# setGenerator( Symfony\Component\Routing\Generator\UrlGeneratorInterface $generator )
public
public
public Symfony\Component\Routing\Route
# register( string $path, Closure|string $callback, string|null $handle = null, array $requirements = array(), array $options = array(), string $host = '', array|string $schemes = array(), array|string $methods = array(), string $condition = null )

Register a symfony route with as little as a path and a callback.

public
public
public
# setThemeByRoute( $path, $theme = NULL, $wrapper = FILENAME_THEMES_VIEW )

Used by the theme_paths and site_theme_paths files in config/ to hard coded certain paths to various themes

public
public string|boolean
# getThemeByRoute( string $path )

This grabs the theme for a particular path, if one exists in the themePaths array

public

Properties summary

protected Symfony\Component\Routing\Generator\UrlGeneratorInterface|null $generator
#
protected Symfony\Component\Routing\RequestContext|null $context
#
protected Symfony\Component\Routing\RouteCollection $collection
#
protected $request
#
protected array $themePaths
# array()
public array $routes
# array()