Is there a way how I could pass variables to Bootstrap.php? This is how I bootstrap in the index.php:
// let's go!
$application = new Zend_Application(APPLICATION_ENVIRONMENT,
APPLICATION_PATH.'/configs/application.ini');
try {
$application->bootstrap();
$application->run();
} catch (Exception $exception) {
echo $exception->getMessage();
exit(1);
}
In one method of my Bootstrap.php class I need to have access to some variables from index.php and using $GLOBALS is just awful:
protected function _initFilePathConverter()
{
require_once (PATH_TO_LIB_UTIL.'/FilePathConverter.php');
$this->aFilePathConverter = new FilePathConverter();
$this->aFilePathConverter->AddPathPairs($GLOBALS['REAL_PATHS'], $GLOBALS['HTTP_PATHS']);
}