Skip to content

Commit

Permalink
Merge branch 'feature/include-zend-7464'
Browse files Browse the repository at this point in the history
resolves #7464
  • Loading branch information
lippserd committed Nov 14, 2014
2 parents 49d66a7 + 0296303 commit 0e050fa
Show file tree
Hide file tree
Showing 2,354 changed files with 929,208 additions and 11 deletions.
13 changes: 3 additions & 10 deletions library/Icinga/Application/ApplicationBootstrap.php
Expand Up @@ -13,7 +13,6 @@
use Icinga\Application\Logger;
use Icinga\Util\DateTimeFactory;
use Icinga\Util\Translator;
use Icinga\Util\TimezoneDetect;
use Icinga\Exception\IcingaException;

/**
Expand Down Expand Up @@ -139,7 +138,6 @@ protected function __construct($baseDir = null, $configDir = null)
$this->configDir = $canonical ? $canonical : $configDir;

$this->setupAutoloader();
$this->setupZendAutoloader();

set_include_path(
implode(
Expand Down Expand Up @@ -323,25 +321,20 @@ public function setupAutoloader()
/**
* Register the Zend Autoloader
*
* @return self
* @return $this
*/
protected function setupZendAutoloader()
{
require_once 'Zend/Loader/Autoloader.php';

\Zend_Loader_Autoloader::getInstance();

// Unfortunately this is needed to get the Zend Plugin loader working:
set_include_path(
implode(
PATH_SEPARATOR,
array($this->libDir, get_include_path())
)
\Zend_Paginator::addScrollingStylePrefixPath(
'Icinga_Web_Paginator_ScrollingStyle_', $this->libDir . '/Icinga/Web/Paginator/ScrollingStyle'
);

return $this;
}

/**
* Setup module manager
*
Expand Down
4 changes: 3 additions & 1 deletion library/Icinga/Application/EmbeddedWeb.php
Expand Up @@ -27,7 +27,9 @@ class EmbeddedWeb extends ApplicationBootstrap
*/
protected function bootstrap()
{
return $this->loadConfig()
return $this
->setupZendAutoloader()
->loadConfig()
->setupErrorHandling()
->setupTimezone()
->setupModuleManager()
Expand Down
1 change: 1 addition & 0 deletions library/Icinga/Application/Web.php
Expand Up @@ -90,6 +90,7 @@ class Web extends ApplicationBootstrap
protected function bootstrap()
{
return $this
->setupZendAutoloader()
->setupLogging()
->setupErrorHandling()
->loadConfig()
Expand Down

0 comments on commit 0e050fa

Please sign in to comment.