No cache version.


Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

Rechercher une fonction PHP

The Yaf_Application class

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

Introduction

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 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.

PHP: Yaf_Application - Manual Home of Manuel PHP  Contents Haut

Class synopsis

/* Properties */
protected $config ;
protected $dispatcher ;
protected static $_app ;
protected $_modules ;
protected $_running ;
protected $_environ ;
/* Methods */
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
}

PHP: Yaf_Application - Manual Home of Manuel PHP  Contents Haut

Properties

config

dispatcher

_app

_modules

_running

_environ

PHP: Yaf_Application - Manual Home of Manuel PHP  Contents Haut

Table of Contents

Find a PHP function

English translation

You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.

If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.

Thank you in advance.

Document created the 30/01/2003, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/php-rf-class.yaf-application.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : http://php.net

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut