/**
  * 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);
 }
Ejemplo n.º 2
0
 private function __construct($driver_name)
 {
     Bootstrap::bootstrap();
     $this->driver = $driver_name;
 }
 /**
  * @inheritDoc
  */
 public function bootstrap()
 {
     $bootstrap = new Bootstrap($this);
     $bootstrap->bootstrap();
 }
Ejemplo n.º 4
0
<?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();