mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-22 21:34:28 +02:00
Remove newlines from Web.php
This commit is contained in:
parent
c47164601a
commit
c54648244e
@ -166,10 +166,8 @@ class Web extends ApplicationBootstrap
|
|||||||
'layoutPath' => $this->getApplicationDir('/layouts/scripts')
|
'layoutPath' => $this->getApplicationDir('/layouts/scripts')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->setupFrontController();
|
$this->setupFrontController();
|
||||||
$this->setupViewRenderer();
|
$this->setupViewRenderer();
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -206,11 +204,9 @@ class Web extends ApplicationBootstrap
|
|||||||
private function setupRequest()
|
private function setupRequest()
|
||||||
{
|
{
|
||||||
$this->request = new Request();
|
$this->request = new Request();
|
||||||
|
|
||||||
if ($this->user instanceof User) {
|
if ($this->user instanceof User) {
|
||||||
$this->request->setUser($this->user);
|
$this->request->setUser($this->user);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -222,17 +218,13 @@ class Web extends ApplicationBootstrap
|
|||||||
private function setupFrontController()
|
private function setupFrontController()
|
||||||
{
|
{
|
||||||
$this->frontController = Zend_Controller_Front::getInstance();
|
$this->frontController = Zend_Controller_Front::getInstance();
|
||||||
|
|
||||||
$this->frontController->setRequest($this->request);
|
$this->frontController->setRequest($this->request);
|
||||||
|
|
||||||
$this->frontController->setControllerDirectory($this->getApplicationDir('/controllers'));
|
$this->frontController->setControllerDirectory($this->getApplicationDir('/controllers'));
|
||||||
|
|
||||||
$this->frontController->setParams(
|
$this->frontController->setParams(
|
||||||
array(
|
array(
|
||||||
'displayExceptions' => true
|
'displayExceptions' => true
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -261,17 +253,14 @@ class Web extends ApplicationBootstrap
|
|||||||
*/
|
*/
|
||||||
private function setupPagination()
|
private function setupPagination()
|
||||||
{
|
{
|
||||||
|
|
||||||
Zend_Paginator::addScrollingStylePrefixPath(
|
Zend_Paginator::addScrollingStylePrefixPath(
|
||||||
'Icinga_Web_Paginator_ScrollingStyle',
|
'Icinga_Web_Paginator_ScrollingStyle',
|
||||||
'Icinga/Web/Paginator/ScrollingStyle'
|
'Icinga/Web/Paginator/ScrollingStyle'
|
||||||
);
|
);
|
||||||
|
|
||||||
Zend_Paginator::setDefaultScrollingStyle('SlidingWithBorder');
|
Zend_Paginator::setDefaultScrollingStyle('SlidingWithBorder');
|
||||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial(
|
Zend_View_Helper_PaginationControl::setDefaultViewPartial(
|
||||||
array('mixedPagination.phtml', 'default')
|
array('mixedPagination.phtml', 'default')
|
||||||
);
|
);
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user