Skip to content
Snippets Groups Projects
Unverified Commit 241fdf94 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Refactor SimpleSAML\Router to SimpleSAML\HTTP\Router.

parent 99c4c948
No related branches found
No related tags found
No related merge requests found
<?php
namespace SimpleSAML;
namespace SimpleSAML\HTTP;
use SimpleSAML\Configuration;
use SimpleSAML\Session;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\HttpFoundation\Request;
......@@ -32,7 +35,7 @@ class Router
/** @var Request */
protected $request;
/** @var \SimpleSAML\ModuleControllerResolver */
/** @var \SimpleSAML\Module\ControllerResolver */
protected $resolver;
/** @var \SimpleSAML\Session */
......@@ -51,7 +54,7 @@ class Router
{
$this->arguments = new ArgumentResolver();
$this->context = new RequestContext();
$this->resolver = new ModuleControllerResolver($module);
$this->resolver = new \SimpleSAML\Module\ControllerResolver($module);
$this->dispatcher = new EventDispatcher();
}
......
......@@ -166,7 +166,7 @@ class Module
$config = Configuration::getInstance();
if ($config->getBoolean('usenewui', false) === true) {
$router = new Router($module);
$router = new HTTP\Router($module);
try {
return $router->process();
} catch (\Symfony\Component\Config\Exception\FileLocatorFileNotFoundException $e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment