The Yaf_Application class

(No version information available, might only be in Git)

Introducere

Yaf_Application provides a bootstrapping facility for applications which provides reusable resources, common- and module-based bootstrap classes and dependency checking.

Notă:

Yaf_Application implements the singleton pattern, and Yaf_Application can not be serialized or unserialized which will cause problem when you try to use PHPUnit to write some test case for Yaf.

You may use @backupGlobals annotation of PHPUnit to control the backup and restore operations for global variables. thus can solve this problem.

Sinopsisul clasei

/* Proprietăți */
protected $config ;
protected $dispatcher ;
protected static $_app ;
protected $_modules ;
protected $_running ;
protected $_environ ;
/* Metode */
public staticapp ( void ) : mixed
public bootstrap ([ Yaf_Bootstrap_Abstract $bootstrap ] ) : void
public clearLastError ( void ) : Yaf_Application
private __clone ( void ) : void
public __construct ( mixed $config [, string $envrion ] )
public __destruct ( void ) : void
public environ ( void ) : void
public execute ( callable $entry , string $... ) : void
public getAppDirectory ( void ) : Yaf_Application
public getConfig ( void ) : Yaf_Config_Abstract
public getDispatcher ( void ) : Yaf_Dispatcher
public getLastErrorMsg ( void ) : string
public getLastErrorNo ( void ) : int
public getModules ( void ) : array
public run ( void ) : void
public setAppDirectory ( string $directory ) : Yaf_Application
private __sleep ( void ) : void
private __wakeup ( void ) : void
}

Proprietăți

config

dispatcher

_app

_modules

_running

_environ

Cuprins