本文整理匯總了PHP中Bootstrap::bootstrap方法的典型用法代碼示例。如果您正苦於以下問題:PHP Bootstrap::bootstrap方法的具體用法?PHP Bootstrap::bootstrap怎麽用?PHP Bootstrap::bootstrap使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Bootstrap
的用法示例。
在下文中一共展示了Bootstrap::bootstrap方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: bootstrap
/**
* Bootstrap the application
*
* Throws Steelcode_Application_Exception if Bootstrap class
* does not extend Steelcode_Application_Bootstrap_Abstract
*
* @param array $options
* @return Stelcode_Application_Config
* @throws Steelcode_Application_Exception
*/
public function bootstrap($options = array())
{
if (!$this->_bootstrap instanceof Steelcode_Application_Bootstrap) {
throw new Steelcode_Application_Exception('Class Bootstrap does not extend Steelcode_Application_Bootstrap_Abstract');
}
return $this->_bootstrap->bootstrap($options);
}
示例2: __construct
private function __construct($driver_name)
{
Bootstrap::bootstrap();
$this->driver = $driver_name;
}
示例3: bootstrap
/**
* @inheritDoc
*/
public function bootstrap()
{
$bootstrap = new Bootstrap($this);
$bootstrap->bootstrap();
}
示例4: define
<?php
/**
* Default CLI configuration
*
* @category backoffice
* @package backoffice_cli
* @copyright casting.net
*/
// define the application path constant
if (!defined('APPLICATION_PATH')) {
define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../../../'));
}
if (!defined('ROOT_PATH')) {
define('ROOT_PATH', realpath(APPLICATION_PATH . '/../'));
}
$paths = array(realpath(APPLICATION_PATH . '/../library'), ROOT_PATH . '/library/App/Model', get_include_path());
set_include_path(implode(PATH_SEPARATOR, $paths));
define('CURRENT_MODULE', 'backoffice');
define('CLI', TRUE);
// Run the main bootstrap
require_once APPLICATION_PATH . '/Bootstrap.php';
$bootstrap = new Bootstrap(false);
$bootstrap->bootstrap(array('Autoloader', 'Environment', 'Db', 'ModulePaths'));
Zend_Registry::set('Bootstrap', $bootstrap);
// Run the current's module CliBootstrap
require_once APPLICATION_PATH . '/modules/backoffice/CliBootstrap.php';
$cliModuleBootstrap = new CliBootstrap();