-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from apphp/dev
Dev Merge to Prod
- Loading branch information
Showing
147 changed files
with
13,538 additions
and
10,772 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
/** | ||
* ApPHP command line script for Unix/Linux. | ||
* | ||
* This is the bootstrap script for running aii on Unix/Linux. | ||
* | ||
* @project ApPHP Framework | ||
* @author ApPHP <info@apphp.com> | ||
* @link http://www.apphpframework.com/ | ||
* @copyright Copyright (c) 2012 - 2020 ApPHP Framework | ||
* @license http://www.apphpframework.com/license/ | ||
*/ | ||
|
||
require_once(dirname(__FILE__).'/aii.php'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@echo off | ||
|
||
rem ------------------------------------------------------------- | ||
rem Aii command line script for Windows. | ||
rem | ||
rem This is the bootstrap script for running aii on Windows. | ||
rem | ||
rem @project ApPHP Framework | ||
rem @author ApPHP <info@apphp.com> | ||
rem @link http://www.apphpframework.com/ | ||
rem @copyright Copyright (c) 2012 - 2020 ApPHP Framework | ||
rem @license http://www.apphpframework.com/license/ | ||
rem ------------------------------------------------------------- | ||
|
||
@setlocal | ||
|
||
set APPHP_PATH=%~dp0 | ||
|
||
if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe | ||
|
||
"%PHP_COMMAND%" "%APPHP_PATH%aii" %* | ||
|
||
@endlocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
// Change the following paths if necessary | ||
defined('APPHP_PATH') || define('APPHP_PATH', dirname(__FILE__)); | ||
// Directory separator | ||
defined('DS') || define('DS', DIRECTORY_SEPARATOR); | ||
// Console mode only | ||
defined('APPHP_MODE') or define('APPHP_MODE', 'console'); | ||
|
||
|
||
$apphp = dirname(__FILE__) . '/../framework/Apphp.php'; | ||
$config = APPHP_PATH . '/protected/config/'; | ||
|
||
require_once($apphp); | ||
A::init($config)->run(); | ||
|
||
// We get automatically $argv and $argc, as we run command line command | ||
$console = new CConsole($argv); | ||
$consoleCommand = new CConsoleCommand( | ||
$console->getCommand(), | ||
$console->getParams() | ||
); | ||
$consoleCommand->run(); |
Oops, something went wrong.