init cli
This commit is contained in:
parent
125dfb1c7b
commit
79967cc2c3
2
.gitignore
vendored
2
.gitignore
vendored
@ -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
4
cli/README.md
Normal file
@ -0,0 +1,4 @@
|
||||
後端伺服器 (指令界面)
|
||||
===
|
||||
|
||||
這個... 現在沒有東西,就這樣 (逃
|
7
cli/composer.json
Normal file
7
cli/composer.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "uelearning",
|
||||
"description": "UElearning",
|
||||
"require": {
|
||||
"symfony/console": "2.5.*"
|
||||
}
|
||||
}
|
18
cli/uelearning.php
Normal file
18
cli/uelearning.php
Normal file
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
// set to run indefinitely if needed
|
||||
set_time_limit(0);
|
||||
|
||||
/* Optional. It’s 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();
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user