-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
40 lines (34 loc) · 810 Bytes
/
index.php
File metadata and controls
40 lines (34 loc) · 810 Bytes
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
38
39
<?php
/**
* Movie Actor Search
*
* Alert Logic Test
*
* Dependency Injection Libary thanks to Pimple http://pimple.sensiolabs.org/
*
* @autor manuel.he@gmail.com
* @version 1.0
*/
$script_start_time = microtime(true);
error_reporting(E_ALL);
ini_set('display_errors', 1);
date_default_timezone_set('America/Bogota');
$show_stats = TRUE;
//Start session
session_cache_limiter(false);
session_start();
// Require vendor autoload libraries
require 'app/vendor/autoload.php';
$di = require 'app/config/di.php';
//Init routing class
$routing = new \Mas\Router($di, $_SERVER, $_GET);
//Run application
$routing->run();
// Print usage basic stats
if($show_stats){
$total_time = microtime(true) - $script_start_time;
printf('
<!-- Generated in %01.3f secs -->'
,$total_time
);
}