34 lines
1.1 KiB
PHP
34 lines
1.1 KiB
PHP
#!/usr/bin/env php
|
|
<?php
|
|
|
|
/*
|
|
* This file is part of the easybook application.
|
|
*
|
|
* (c) Javier Eguiluz <javier.eguiluz@gmail.com>
|
|
*
|
|
* 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(); |