$engine = new Engine(__DIR__ . '/..');
$engine->loadModules(include __DIR__ . '/../config/modules.php')
->bootstrap()
->run();
파일 보기
프로젝트 열기: evaengine/evaengine
1 사용 예제들
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$appStartTime | float |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$appMode | string | ||
$appName | string | ||
$appRoot | null | string | ||
$application | Phalcon\Mvc\Application | ||
$cacheEnable | boolean | ||
$configPath | string | ||
$debugger | Phalcon\Debug | ||
$di | Phalcon\DiInterface | ||
$environment | string | ||
$modulesPath | string |
메소드 | 설명 | |
---|---|---|
__construct ( $appRoot = null, $appName = 'evaengine', $appMode = 'web' ) | Constructor | |
attachModuleEvents ( ) | ||
bootstrap ( ) | Application Bootstrap, init DI, register Modules, init events, init ErrorHandler | |
diApiCache ( ) | ||
diConfig ( ) | ||
diCors ( ) | ||
diDbAdapter ( $adapterKey, array $options, $di ) | ||
diDbMaster ( ) | ||
diDbSlave ( ) | ||
diFastCache ( ) | ||
diFileSystem ( ) | ||
diGlobalCache ( ) | ||
diMailer ( ) | ||
diModelsCache ( ) | ||
diModelsMetadata ( ) | ||
diRouter ( ) | ||
diSession ( ) | ||
diSmsSender ( ) | ||
diTokenStorage ( ) | ||
diTranslate ( ) | ||
diViewCache ( ) | ||
getAppMode ( ) : string | ||
getAppName ( ) : string | ||
getAppRoot ( ) : null | string | ||
getApplication ( ) : Phalcon\CLI\Console | Phalcon\Mvc\Application | ||
getConfigPath ( ) : string | ||
getDI ( ) : Phalcon\DI\FactoryDefault | Phalcon\DI\FactoryDefault\CLI | Configuration application default DI | |
getDebugger ( ) : Phalcon\Debug | ||
getEnvironment ( ) : string | ||
getModulesPath ( ) : string | ||
initErrorHandler ( Eva\EvaEngine\Error\ErrorHandlerInterface $errorHandler ) | Register default error handler | |
loadModules ( array $moduleSettings ) | Load modules from input settings, and call phalcon application->registerModules() for register | |
readCache ( $cacheFile, boolean $serialize = false ) : mixed | null | ||
registerViewHelpers ( ) | ||
run ( ) | Run application | |
runCustom ( ) | A custum version for Application->run() WARNING: This method not able to replace phalcon default run() | |
setAppName ( $name ) | ||
setAppRoot ( $appRoot ) | ||
setConfigPath ( $path ) | ||
setDI ( Phalcon\DiInterface $di ) | ||
setEnvironment ( $environment ) | ||
setModulesPath ( $modulesPath ) | ||
writeCache ( $cacheFile, $content, boolean $serialize = false ) : boolean |
메소드 | 설명 | |
---|---|---|
cliDI ( Phalcon\DI\FactoryDefault\CLI $di ) | CLI 模式下的 DI 配置 | |
diCache ( $configKey, $prefix = 'eva_' ) |
public __construct ( $appRoot = null, $appName = 'evaengine', $appMode = 'web' ) |
public bootstrap ( ) |
protected cliDI ( Phalcon\DI\FactoryDefault\CLI $di ) | ||
$di | Phalcon\DI\FactoryDefault\CLI |
public static diDbAdapter ( $adapterKey, array $options, $di ) | ||
$options | array |
public getApplication ( ) : Phalcon\CLI\Console | Phalcon\Mvc\Application | ||
리턴 | Phalcon\CLI\Console | Phalcon\Mvc\Application |
public getDI ( ) : Phalcon\DI\FactoryDefault | Phalcon\DI\FactoryDefault\CLI | ||
리턴 | Phalcon\DI\FactoryDefault | Phalcon\DI\FactoryDefault\CLI |
public initErrorHandler ( Eva\EvaEngine\Error\ErrorHandlerInterface $errorHandler ) | ||
$errorHandler | Eva\EvaEngine\Error\ErrorHandlerInterface |
public loadModules ( array $moduleSettings ) | ||
$moduleSettings | array |
public runCustom ( ) |
public writeCache ( $cacheFile, $content, boolean $serialize = false ) : boolean | ||
$cacheFile | ||
$content | ||
$serialize | boolean | |
리턴 | boolean |