Commit 8238e9fa authored by Thomas Löffler's avatar Thomas Löffler

Merge branch 'ter_fe2_deprecations' into 'TYPO3V9/ter_fe2'

TYPO3 scanner complaints

See merge request !442
parents 41f5c4b9 ee45fbae
Pipeline #7818 passed with stages
in 4 minutes and 38 seconds
......@@ -16,6 +16,7 @@ namespace T3o\TerFe2\Controller;
use T3o\TerFe2\Validation\Validator\ComposerNameValidator;
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Page\PageRenderer;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/**
......@@ -162,7 +163,7 @@ class ExtensionController extends \T3o\TerFe2\Controller\AbstractController
* Action that displays a single extension
*
* @param \T3o\TerFe2\Domain\Model\Extension $extension The extension to display
* @ignorevalidation $extension
* @TYPO3\CMS\Extbase\Annotation\IgnoreValidation("extension")
*/
public function showAction(\T3o\TerFe2\Domain\Model\Extension $extension = null)
{
......@@ -193,10 +194,11 @@ class ExtensionController extends \T3o\TerFe2\Controller\AbstractController
$documentationLink = $documentationService->getDocumentationLink($extension->getExtKey(), $extension->getLastVersion()->getVersionString(), true);
$this->view->assign('documentationLink', $documentationLink);
$pageRenderer = $this->objectManager->get(\TYPO3\CMS\Core\Page\PageRenderer::class);
$pageRenderer->addMetaTag('<meta name="description" content="' . htmlspecialchars($extension->getLastVersion()->getDescription()) . '" />');
/** @var PageRenderer $pageRenderer */
$pageRenderer = $this->objectManager->get(PageRenderer::class);
$pageRenderer->setMetaTag('name', 'description', htmlspecialchars($extension->getLastVersion()->getDescription()));
if ($extension->getTags()->count() > 0) {
$pageRenderer->addMetaTag('<meta name="keywords" content="' . htmlspecialchars(implode(',', $extension->getTags()->toArray())) . '" />');
$pageRenderer->setMetaTag('name', 'keywords', htmlspecialchars(implode(',', $extension->getTags()->toArray())));
}
// gets all other extensions from the owner
......@@ -222,7 +224,7 @@ class ExtensionController extends \T3o\TerFe2\Controller\AbstractController
* Displays a form to edit an existing extension
*
* @param \T3o\TerFe2\Domain\Model\Extension $extension The extension to display
* @ignorevalidation $extension
* @TYPO3\CMS\Extbase\Annotation\IgnoreValidation("extension")
*/
public function editAction(\T3o\TerFe2\Domain\Model\Extension $extension)
{
......@@ -320,7 +322,7 @@ class ExtensionController extends \T3o\TerFe2\Controller\AbstractController
/**
* @param \T3o\TerFe2\Domain\Model\Extension $extension
* @param \T3o\TerFe2\Domain\Model\Tag $tag
* @ignorevalidation $extension
* @TYPO3\CMS\Extbase\Annotation\IgnoreValidation("extension")
*/
public function removeTagAction(\T3o\TerFe2\Domain\Model\Extension $extension, \T3o\TerFe2\Domain\Model\Tag $tag)
{
......@@ -356,7 +358,7 @@ class ExtensionController extends \T3o\TerFe2\Controller\AbstractController
* @param \T3o\TerFe2\Domain\Model\Extension $extension The extension object
* @param string $versionString An existing version string
* @param string $format Format of the file output
* @ignorevalidation $extension
* @TYPO3\CMS\Extbase\Annotation\IgnoreValidation("extension")
* @throws \Exception
*/
public function downloadAction(\T3o\TerFe2\Domain\Model\Extension $extension, $versionString = '', $format = '')
......@@ -443,7 +445,7 @@ class ExtensionController extends \T3o\TerFe2\Controller\AbstractController
*
* @param \T3o\TerFe2\Domain\Model\Extension $extension The extension object
* @param array $form Form information for the new version
* @ignorevalidation $extension
* @TYPO3\CMS\Extbase\Annotation\IgnoreValidation("extension")
*/
public function uploadVersionAction(\T3o\TerFe2\Domain\Model\Extension $extension, array $form = [])
{
......@@ -459,7 +461,7 @@ class ExtensionController extends \T3o\TerFe2\Controller\AbstractController
*
* @param \T3o\TerFe2\Domain\Model\Extension $extension The extension object
* @param array $form Form information for the new version
* @ignorevalidation $extension
* @TYPO3\CMS\Extbase\Annotation\IgnoreValidation("extension")
*/
public function createVersionAction(\T3o\TerFe2\Domain\Model\Extension $extension, array $form)
{
......
......@@ -165,7 +165,7 @@ class RegisterkeyController extends \T3o\TerFe2\Controller\AbstractTerBasedContr
*
* @param string $newUser Username of the assignee
* @param \T3o\TerFe2\Domain\Model\Extension $extension Extension to transfer
* @ignorevalidation $extension
* @TYPO3\CMS\Extbase\Annotation\IgnoreValidation("extension")
*/
public function transferAction($newUser, \T3o\TerFe2\Domain\Model\Extension $extension)
{
......@@ -252,7 +252,7 @@ class RegisterkeyController extends \T3o\TerFe2\Controller\AbstractTerBasedContr
* The process for getting expiring extensions will be back in 1 year
*
* @param \T3o\TerFe2\Domain\Model\Extension $extension
* @ignorevalidation $extension
* @TYPO3\CMS\Extbase\Annotation\IgnoreValidation("extension")
* @throws \TYPO3\CMS\Extbase\Mvc\Exception\UnsupportedRequestTypeException
*/
public function keepAction(\T3o\TerFe2\Domain\Model\Extension $extension)
......@@ -266,7 +266,7 @@ class RegisterkeyController extends \T3o\TerFe2\Controller\AbstractTerBasedContr
* Delete an extension version from ter server
*
* @param \T3o\TerFe2\Domain\Model\Version $version Extension to delete
* @ignorevalidation $version
* @TYPO3\CMS\Extbase\Annotation\IgnoreValidation("version")
*/
public function deleteExtensionVersionAction(\T3o\TerFe2\Domain\Model\Version $version)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment