aboutsummaryrefslogtreecommitdiff
path: root/index.php
blob: aff455ea9877ea832792eed6a955162ea47fca3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php


session_start();



require(__DIR__ . '/fn/w.fn.php');

function class_autoloader($class)
{
    require(__DIR__ . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . strtolower($class) . '.php');
}


require(__DIR__ . '/../vendor/autoload.php');

spl_autoload_register('class_autoloader');


$app = new Application();
$app->wakeup();

try {
    $matchoper = new Routes();
    $matchoper->match();

} catch (Exception $e) {
    echo 'Exception reçue : ', $e->getMessage(), "\n";
}






?>