Skip to content

Commit

Permalink
Remove newlines from Web.php
Browse files Browse the repository at this point in the history
  • Loading branch information
lippserd committed Mar 11, 2015
1 parent c471646 commit c546482
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions library/Icinga/Application/Web.php
Expand Up @@ -166,10 +166,8 @@ private function setupZendMvc()
'layoutPath' => $this->getApplicationDir('/layouts/scripts')
)
);

$this->setupFrontController();
$this->setupViewRenderer();

return $this;
}

Expand Down Expand Up @@ -206,11 +204,9 @@ private function setupSession()
private function setupRequest()
{
$this->request = new Request();

if ($this->user instanceof User) {
$this->request->setUser($this->user);
}

return $this;
}

Expand All @@ -222,17 +218,13 @@ private function setupRequest()
private function setupFrontController()
{
$this->frontController = Zend_Controller_Front::getInstance();

$this->frontController->setRequest($this->request);

$this->frontController->setControllerDirectory($this->getApplicationDir('/controllers'));

$this->frontController->setParams(
array(
'displayExceptions' => true
)
);

return $this;
}

Expand Down Expand Up @@ -261,17 +253,14 @@ private function setupViewRenderer()
*/
private function setupPagination()
{

Zend_Paginator::addScrollingStylePrefixPath(
'Icinga_Web_Paginator_ScrollingStyle',
'Icinga/Web/Paginator/ScrollingStyle'
);

Zend_Paginator::setDefaultScrollingStyle('SlidingWithBorder');
Zend_View_Helper_PaginationControl::setDefaultViewPartial(
array('mixedPagination.phtml', 'default')
);

return $this;
}

Expand Down

0 comments on commit c546482

Please sign in to comment.