This commit is contained in:
Yuan Chiu 2014-07-28 21:38:25 -07:00
parent 125dfb1c7b
commit 79967cc2c3
4 changed files with 30 additions and 1 deletions

2
.gitignore vendored
View File

@ -25,4 +25,4 @@ vendor/
# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock
composer.lock

4
cli/README.md Normal file
View File

@ -0,0 +1,4 @@
後端伺服器 (指令界面)
===
這個... 現在沒有東西,就這樣 (逃

7
cli/composer.json Normal file
View File

@ -0,0 +1,7 @@
{
"name": "uelearning",
"description": "UElearning",
"require": {
"symfony/console": "2.5.*"
}
}

18
cli/uelearning.php Normal file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env php
<?php
// set to run indefinitely if needed
set_time_limit(0);
/* Optional. Its better to do it in the php.ini file */
date_default_timezone_set('America/Los_Angeles');
// include the composer autoloader
require_once __DIR__ . '/vendor/autoload.php';
// import the Symfony Console Application
use Symfony\Component\Console\Application;
$app = new Application();
$app->run();
?>