mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°7059 - Symfony 6.4 - Add missing namespaces to match PSR-4 convention (#589)
This commit is contained in:
15
pages/UI.php
15
pages/UI.php
@@ -19,6 +19,9 @@ use Combodo\iTop\Application\UI\Base\Component\Toolbar\ToolbarUIBlockFactory;
|
||||
use Combodo\iTop\Application\UI\Base\Layout\PageContent\PageContentFactory;
|
||||
use Combodo\iTop\Application\UI\Base\Layout\UIContentBlock;
|
||||
use Combodo\iTop\Application\UI\Base\Layout\UIContentBlockUIBlockFactory;
|
||||
use Combodo\iTop\Application\WebPage\ErrorPage;
|
||||
use Combodo\iTop\Application\WebPage\iTopWebPage;
|
||||
use Combodo\iTop\Application\WebPage\WebPage;
|
||||
use Combodo\iTop\Controller\Base\Layout\ObjectController;
|
||||
use Combodo\iTop\Service\Router\Router;
|
||||
|
||||
@@ -201,7 +204,7 @@ function DisplaySearchSet($oP, $oFilter, $bSearchForm = true, $sBaseClass = '',
|
||||
* Displays a form (checkboxes) to select the objects for which to apply a given action
|
||||
* Only the objects for which the action is valid can be checked. By default all valid objects are checked
|
||||
*
|
||||
* @param \WebPage $oP WebPage The page for output
|
||||
* @param WebPage $oP WebPage The page for output
|
||||
* @param \DBSearch $oFilter DBSearch The filter that defines the list of objects
|
||||
* @param string $sNextOperation string The next operation (code) to be executed when the form is submitted
|
||||
* @param ActionChecker $oChecker ActionChecker The helper class/instance used to check for which object the action is valid
|
||||
@@ -321,13 +324,13 @@ try
|
||||
if ($oRouter->CanDispatchRoute($sRoute)) {
|
||||
$mResponse = $oRouter->DispatchRoute($sRoute);
|
||||
|
||||
// If response isn't a \WebPage, it is most likely that the output already occured, stop the script.
|
||||
// If response isn't a WebPage, it is most likely that the output already occured, stop the script.
|
||||
// Note that this is done here and not directly in the Router::DispatchRoute() so custom endpoint can handle null responses their own way.
|
||||
if (false === ($mResponse instanceof WebPage)) {
|
||||
die();
|
||||
}
|
||||
|
||||
// Response is a \WebPage, let's handle it like legacy operations
|
||||
// Response is a WebPage, let's handle it like legacy operations
|
||||
$oP = $mResponse;
|
||||
}
|
||||
// Otherwise, use legacy operation
|
||||
@@ -1545,7 +1548,7 @@ class UI
|
||||
/**
|
||||
* Operation select_for_modify_all
|
||||
*
|
||||
* @param \iTopWebPage $oP
|
||||
* @param iTopWebPage $oP
|
||||
*
|
||||
* @throws \ApplicationException
|
||||
* @throws \ArchivedObjectException
|
||||
@@ -1577,7 +1580,7 @@ class UI
|
||||
/**
|
||||
* Operation form_for_modify_all
|
||||
*
|
||||
* @param \iTopWebPage $oP
|
||||
* @param iTopWebPage $oP
|
||||
* @param \ApplicationContext $oAppContext
|
||||
*
|
||||
* @throws \ArchivedObjectException
|
||||
@@ -1603,7 +1606,7 @@ class UI
|
||||
/**
|
||||
* Operation preview_or_modify_all
|
||||
*
|
||||
* @param \iTopWebPage $oP
|
||||
* @param iTopWebPage $oP
|
||||
* @param \ApplicationContext $oAppContext
|
||||
*
|
||||
* @throws \ApplicationException
|
||||
|
||||
Reference in New Issue
Block a user