-
Notifications
You must be signed in to change notification settings - Fork 82
/
book
executable file
·34 lines (29 loc) · 1.06 KB
/
book
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
#!/usr/bin/env php
<?php
/*
* This file is part of the easybook application.
*
* (c) Javier Eguiluz <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
if (!file_exists(__DIR__.'/vendor/autoload.php')) {
throw new \RuntimeException(
"\n"
."[ERROR] easybook depends on some external libraries and components.\n"
."It seems that those dependencies aren't properly installed.\n\n"
."Perhaps you forgot to execute 'php composer.phar install' before\n"
."using easybook for the first time?\n\n"
."This command requires that you have previously installed Composer.\n"
."To do so, execute the following command:\n\n"
." $ curl -s http://getcomposer.org/installer | php"
."\n\n"
);
}
require __DIR__.'/vendor/autoload.php';
use Easybook\DependencyInjection\Application;
use Easybook\Console\ConsoleApplication;
$app = new Application();
$console = new ConsoleApplication($app);
$console->run();