本文整理汇总了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();