Application/Bootstrap/Bootstrap.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Application  
Subpackage
Bootstrap  
Version
$Id$  

\Zend_Application_Bootstrap_Bootstrap

Package: Zend_Application\Bootstrap
Concrete base class for bootstrap classes
Registers and utilizes Zend_Controller_Front by default.
Parent(s)
\Zend_Application_Bootstrap_BootstrapAbstract
Children
\Zend_Application_Module_Bootstrap
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Uses
 

Properties

>VPropertyprotectedfalse|string $_appNamespace = false
Application resource namespace
Default valuefalseDetails
Type
false | string
>VPropertyprotected\Zend_Loader_Autoloader_Resource $_resourceLoader
Application resource autoloader

Methods

methodpublic__construct(\Zend_Application | \Zend_Application_Bootstrap_Bootstrapper $application) : void

Constructor

Ensure FrontController resource is registered
Parameters
NameTypeDescription
$application\Zend_Application | \Zend_Application_Bootstrap_Bootstrapper
methodpublicgetAppNamespace() : string

Get application namespace (used for module autoloading)

Returns
TypeDescription
string
methodpublicgetResourceLoader() : \Zend_Loader_Autoloader_Resource

Retrieve module resource loader

Returns
TypeDescription
\Zend_Loader_Autoloader_Resource
methodpublicrun() : mixed

Run the application

Checks to see that we have a default controller directory. If not, an exception is thrown. If so, it registers the bootstrap with the 'bootstrap' parameter of the front controller, and dispatches the front controller.
Returns
TypeDescription
mixed
Throws
ExceptionDescription
\Zend_Application_Bootstrap_Exception
methodpublicsetAppNamespace( $value) : \Zend_Application_Bootstrap_Bootstrap

Set application namespace (for module autoloading)

Parameters
NameTypeDescription
$value
Returns
TypeDescription
\Zend_Application_Bootstrap_Bootstrap
methodpublicsetResourceLoader(\Zend_Loader_Autoloader_Resource $loader) : \Zend_Application_Module_Bootstrap

Set module resource loader

Parameters
NameTypeDescription
$loader\Zend_Loader_Autoloader_Resource
Returns
TypeDescription
\Zend_Application_Module_Bootstrap
Documentation was generated by phpDocumentor 2.2.0 .