Application/Bootstrap/Bootstrap.php
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
Throws
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
false|string $_appNamespace = false
Application resource namespace
Default value
false
Details- Type
- false | string
Methods
__construct(\Zend_Application | \Zend_Application_Bootstrap_Bootstrapper $application) : void
Constructor
Ensure FrontController resource is registered
ParametersName | Type | Description |
---|---|---|
$application | \Zend_Application | \Zend_Application_Bootstrap_Bootstrapper |
getAppNamespace() : string
Get application namespace (used for module autoloading)
Returns
Type | Description |
---|---|
string |
getResourceLoader() : \Zend_Loader_Autoloader_Resource
Retrieve module resource loader
Returns
Type | Description |
---|---|
\Zend_Loader_Autoloader_Resource |
run() : 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.
ReturnsType | Description |
---|---|
mixed |
Exception | Description |
---|---|
\Zend_Application_Bootstrap_Exception |
setAppNamespace( $value) : \Zend_Application_Bootstrap_Bootstrap
Set application namespace (for module autoloading)
Parameters
Returns
Name | Type | Description |
---|---|---|
$value |
Type | Description |
---|---|
\Zend_Application_Bootstrap_Bootstrap |
setResourceLoader(\Zend_Loader_Autoloader_Resource $loader) : \Zend_Application_Module_Bootstrap
Set module resource loader
Parameters
Returns
Name | Type | Description |
---|---|---|
$loader | \Zend_Loader_Autoloader_Resource |
Type | Description |
---|---|
\Zend_Application_Module_Bootstrap |