(Yaf >=1.0.0)
Yaf_Application provides a bootstrapping facility for applications which provides reusable resources, common- and module-based bootstrap classes and dependency checking.
Note:
Yaf_Application implements the singleton pattern, and Yaf_Application can not be serialized or unserialized, which will cause problems when you try to use PHPUnit to write some test cases for Yaf.
You may use the
@backupGlobalsannotation of PHPUnit to control the backup and restore operations for global variables, thus solving this problem.
The application configuration object.
The Yaf_Dispatcher instance used by this application.
Static reference to the single running application instance.
The list of registered module names, parsed from application.modules.
Whether the application is currently running.
The environment name of the application, defaults to
"product".
The code of the last error, one of the YAF_ERR_* constants.
The message of the last error.