PHP Class Phosphorum\Bootstrap

Datei anzeigen Open project: phalcon/forum Class Usage Examples

Public Methods

Method Description
__construct ( ) Bootstrap constructor.
getApplication ( ) : Phalcon\Application | Phalcon\Mvc\Application Get the Application.
getOutput ( ) : string Get application output.
run ( ) : Phalcon\Application | string Runs the Application

Protected Methods

Method Description
initBreadcrumbs ( ) Initialize the Breadcrumbs component.
initCache ( ) Initialize the Cache.
initConfig ( ) Initialize the Application Config.
initDatabase ( ) Initialize the Database connection.
initDispatcher ( ) Initialize the Dispatcher.
initElastic ( ) Initialize the Elasticsearch Service.
initEventsManager ( ) Initialize the Application Events Manager.
initFlash ( ) Initialize the Flash Service.
initGravatar ( ) Initialize the Gravatar Service.
initLoader ( ) Initialize the Loader.
initLogger ( ) Initialize the Logger.
initMarkdown ( ) Initialize the Markdown renderer.
initNotifications ( ) Initialize the real-time notifications checker.
initQueue ( ) Initialize the Queue Service.
initRecaptcha ( )
initRouter ( ) Initialize the Router.
initSecurity ( ) Initialize the Security Service.
initSession ( ) Initialize the Session Service.
initSlug ( ) Initialize the Slug component.
initTimezones ( ) Initialize time zones.
initUrl ( ) Initialize the Url service.
initView ( ) Initialize the View.

Method Details

__construct() public method

Bootstrap constructor.
public __construct ( )

getApplication() public method

Get the Application.
public getApplication ( ) : Phalcon\Application | Phalcon\Mvc\Application
return Phalcon\Application | Phalcon\Mvc\Application

getOutput() public method

Get application output.
public getOutput ( ) : string
return string

initBreadcrumbs() protected method

Initialize the Breadcrumbs component.
protected initBreadcrumbs ( )

initCache() protected method

The frontend must always be Phalcon\Cache\Frontend\Output and the service 'viewCache' must be registered as always open (not shared) in the services container (DI).
protected initCache ( )

initConfig() protected method

Initialize the Application Config.
protected initConfig ( )

initDatabase() protected method

Database connection is created based in the parameters defined in the configuration file.
protected initDatabase ( )

initDispatcher() protected method

Initialize the Dispatcher.
protected initDispatcher ( )

initElastic() protected method

Initialize the Elasticsearch Service.
protected initElastic ( )

initEventsManager() protected method

Initialize the Application Events Manager.
protected initEventsManager ( )

initFlash() protected method

Register the Flash Service with the Twitter Bootstrap classes
protected initFlash ( )

initGravatar() protected method

Initialize the Gravatar Service.
protected initGravatar ( )

initLoader() protected method

Adds all required namespaces.
protected initLoader ( )

initLogger() protected method

Initialize the Logger.
protected initLogger ( )

initMarkdown() protected method

Initialize the Markdown renderer.
protected initMarkdown ( )

initNotifications() protected method

Initialize the real-time notifications checker.
protected initNotifications ( )

initQueue() protected method

Queue to deliver e-mails in real-time and other tasks.
protected initQueue ( )

initRecaptcha() protected method

protected initRecaptcha ( )

initRouter() protected method

Initialize the Router.
protected initRouter ( )

initSecurity() protected method

Initialize the Security Service.
protected initSecurity ( )

initSession() protected method

Start the session the first time some component request the session service.
protected initSession ( )

initSlug() protected method

Initialize the Slug component.
protected initSlug ( )

initTimezones() protected method

Initialize time zones.
protected initTimezones ( )

initUrl() protected method

The URL component is used to generate all kind of urls in the application.
protected initUrl ( )

initView() protected method

Setting up the view component.
protected initView ( )

run() public method

Runs the Application
public run ( ) : Phalcon\Application | string
return Phalcon\Application | string