PHP 클래스 Prado\TShellApplication
TShellApplication is the base class for developing command-line PRADO
tools that share the same configurations as their Web application counterparts.
A typical usage of TShellApplication in a command-line PHP script is as follows:
require_once('path/to/prado.php');
$application=new TShellApplication('path/to/application.xml');
$application->run();
perform command-line tasks here
Since the application instance has access to all configurations, including
path aliases, modules and parameters, the command-line script has nearly the same
accessibility to resources as the PRADO Web applications.
파일 보기
프로젝트 열기: pradosoft/prado
공개 메소드들
메소드 |
설명 |
|
run ( ) |
Runs the application. |
|
메소드 상세
This method overrides the parent implementation by initializing
application with configurations specified when it is created.