Пример #1
0
 public function __construct($application, $config = array())
 {
     $this->_application = $application;
     $this->_config = $config;
     if (is_null(self::$_rootStrap)) {
         self::$_rootStrap = $this;
     }
 }
Пример #2
0
 public function run(&$request = NULL)
 {
     //$this->_correctMagicQuotes();
     if (is_null($request)) {
         $request = array('uri' => $_SERVER['REQUEST_URI'], 'method' => $_SERVER['REQUEST_METHOD'], 'format' => self::_detectFormat(), 'get' => $_GET, 'post' => $_POST, 'session' => isset($_SESSION) ? $_SESSION : NULL, 'files' => $_FILES, 'internal' => array(), 'lang' => self::_detectLang());
     } else {
     }
     return parent::run($request);
 }
Пример #3
0
 public function __construct($application, $config = array())
 {
     parent::__construct($application, $config);
     /* //#TODO #2.0.0 didn't seem to help stop output to stderr
         if (APPLICATION_PROTOCOL == 'commandline') {
        ini_set('html_errors', 0);
        }
        */
     $this->_postConstruct();
 }