aboutsummaryrefslogtreecommitdiff
path: root/callnotifier.php
blob: 9093691e67cc20b8041a747a9ece551d417effb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env php
<?php
namespace callnotifier;

set_include_path(
    __DIR__ . '/src/'
    . PATH_SEPARATOR . get_include_path()
);
spl_autoload_register(
    function ($class) {
        $file = str_replace(array('\\', '_'), '/', $class) . '.php';
        $hdl = @fopen($file, 'r', true);
        if ($hdl !== false) {
            fclose($hdl);
            require $file;
        }
    }
);

$cli = new CLI();
$cli->run();

?>