Skip to content

Commit

Permalink
Add extension scanner ignore line
Browse files Browse the repository at this point in the history
  • Loading branch information
garbast committed Jul 14, 2024
1 parent 922fb17 commit bdf08f0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Classes/Xclass/ContainerGridColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

use B13\Container\Backend\Grid\ContainerGridColumn as BaseContainerGridColumn;
use B13\Container\Domain\Model\Container;
use Psr\Http\Message\ServerRequestInterface;
use TYPO3\CMS\Backend\Routing\UriBuilder;
use TYPO3\CMS\Backend\View\PageLayoutContext;
use TYPO3\CMS\Core\Utility\GeneralUtility;
Expand Down Expand Up @@ -84,7 +85,8 @@ public function getNewContentUrl(): string
'uid_pid' => $this->newContentElementAtTopTarget,
],
],
'returnUrl' => $GLOBALS['TYPO3_REQUEST']->getAttribute('normalizedParams')->getRequestUri(),
// @extensionScannerIgnoreLine
'returnUrl' => $this->getRequest()->getAttribute('normalizedParams')->getRequestUri(),
];
$routeName = 'record_edit';

Expand Down Expand Up @@ -126,4 +128,9 @@ public function getHiddenItemCount(): int
)
);
}

protected function getRequest(): ServerRequestInterface
{
return $GLOBALS['TYPO3_REQUEST'];
}
}
9 changes: 8 additions & 1 deletion Classes/Xclass/ContainerGridColumnItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
namespace Evoweb\EwCollapsibleContainer\Xclass;

use B13\Container\Backend\Grid\ContainerGridColumnItem as BaseContainerGridColumnItem;
use Psr\Http\Message\ServerRequestInterface;
use TYPO3\CMS\Backend\Routing\UriBuilder;
use TYPO3\CMS\Core\Utility\GeneralUtility;

Expand All @@ -42,7 +43,8 @@ public function getNewContentAfterUrl(): string
'uid_pid' => -$this->record['uid'],
],
],
'returnUrl' => $GLOBALS['TYPO3_REQUEST']->getAttribute('normalizedParams')->getRequestUri(),
// @extensionScannerIgnoreLine
'returnUrl' => $this->getRequest()->getAttribute('normalizedParams')->getRequestUri(),
];
$routeName = 'record_edit';

Expand All @@ -68,4 +70,9 @@ public function isHidden(): bool
{
return ($this->record['hidden'] ?? 0) > 0;
}

protected function getRequest(): ServerRequestInterface
{
return $GLOBALS['TYPO3_REQUEST'];
}
}

0 comments on commit bdf08f0

Please sign in to comment.