You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
512 B
16 lines
512 B
<?php
|
|
|
|
use Silex\Router\Router;
|
|
|
|
require __DIR__ . '/../src/Silex/Config/SplClassLoader.php';
|
|
require __DIR__ . '/../src/Silex/Config/Config.php';
|
|
|
|
$loader = new SplClassLoader('Silex', __DIR__ . '/../src');
|
|
$loader->register();
|
|
|
|
$controller = new \Silex\Controller\UserController();
|
|
$router = new Router($_SERVER['REQUEST_URI']);
|
|
$router->get('/^$/', [$controller, 'index']);
|
|
//$router->get('/^inscription$/', [$controller, 'connexion']);
|
|
$router->run(new \Silex\DI\DI())->render(__DIR__ . '/../' . VIEW_PATH);
|