mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
Form: Add missing use statement for the ProgrammingError exception
This commit is contained in:
parent
b4214dcf32
commit
c0de2e6ee3
@ -3,13 +3,13 @@
|
|||||||
|
|
||||||
namespace Icinga\Web;
|
namespace Icinga\Web;
|
||||||
|
|
||||||
use LogicException;
|
|
||||||
use Zend_Config;
|
use Zend_Config;
|
||||||
use Zend_Form;
|
use Zend_Form;
|
||||||
use Zend_Form_Element;
|
use Zend_Form_Element;
|
||||||
use Zend_View_Interface;
|
use Zend_View_Interface;
|
||||||
use Icinga\Application\Icinga;
|
use Icinga\Application\Icinga;
|
||||||
use Icinga\Authentication\Manager;
|
use Icinga\Authentication\Manager;
|
||||||
|
use Icinga\Exception\ProgrammingError;
|
||||||
use Icinga\Security\SecurityException;
|
use Icinga\Security\SecurityException;
|
||||||
use Icinga\Util\Translator;
|
use Icinga\Util\Translator;
|
||||||
use Icinga\Web\Form\ErrorLabeller;
|
use Icinga\Web\Form\ErrorLabeller;
|
||||||
@ -222,12 +222,12 @@ class Form extends Zend_Form
|
|||||||
*
|
*
|
||||||
* @return $this
|
* @return $this
|
||||||
*
|
*
|
||||||
* @throws LogicException If the callback is not callable
|
* @throws ProgrammingError If the callback is not callable
|
||||||
*/
|
*/
|
||||||
public function setOnSuccess($onSuccess)
|
public function setOnSuccess($onSuccess)
|
||||||
{
|
{
|
||||||
if (! is_callable($onSuccess)) {
|
if (! is_callable($onSuccess)) {
|
||||||
throw new LogicException('The option `onSuccess\' is not callable');
|
throw new ProgrammingError('The option `onSuccess\' is not callable');
|
||||||
}
|
}
|
||||||
$this->onSuccess = $onSuccess;
|
$this->onSuccess = $onSuccess;
|
||||||
return $this;
|
return $this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user