Skip to content

Commit

Permalink
[TASK] Adapt usages of removed TYPO3 CMS classes
Browse files Browse the repository at this point in the history
Use corresponding classes from TYPO3Fluid/Fluid
where possible.
  • Loading branch information
NamelessCoder committed Jan 8, 2020
1 parent eca7ca1 commit 457b422
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 23 deletions.
2 changes: 0 additions & 2 deletions Classes/ViewHelpers/Form/SelectViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* LICENSE.md file that was distributed with this source code.
*/

use TYPO3\CMS\Fluid\Core\ViewHelper\Exception;

/**
* Select ViewHelper (with support for Optgroup and Option subnodes).
*
Expand Down
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Format/DateRangeViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

use FluidTYPO3\Vhs\Utility\ErrorUtility;
use TYPO3\CMS\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithContentArgumentAndRenderStatic;
Expand Down
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Format/Json/DecodeViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

use FluidTYPO3\Vhs\Utility\ErrorUtility;
use TYPO3\CMS\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithContentArgumentAndRenderStatic;
Expand Down
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Format/Json/EncodeViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use FluidTYPO3\Vhs\Utility\ErrorUtility;
use TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface;
use TYPO3\CMS\Extbase\Reflection\ObjectAccess;
use TYPO3\CMS\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithContentArgumentAndRenderStatic;
Expand Down
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Format/MarkdownViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use TYPO3\CMS\Core\Cache\Frontend\VariableFrontend;
use TYPO3\CMS\Core\Utility\CommandUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithContentArgumentAndRenderStatic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

use FluidTYPO3\Vhs\Utility\ErrorUtility;
use TYPO3\CMS\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;

/**
Expand Down
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Media/AudioViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

use FluidTYPO3\Vhs\Traits\TagViewHelperTrait;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\ViewHelper\Exception;

/**
* Renders HTML code to embed a HTML5 audio player. NOTICE: This is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use TYPO3\CMS\Core\Resource\ResourceFactory;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Domain\Model\FileReference;
use TYPO3\CMS\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use TYPO3\CMS\Core\Utility\MathUtility;
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
use TYPO3\CMS\Extbase\Domain\Model\FileReference;
use TYPO3\CMS\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\ViewHelper\Exception;

/**
* Base class for image related view helpers adapted from FLUID
Expand Down
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Media/ImageViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function initializeArguments()
* Render method
*
* @return string
* @throws \TYPO3\CMS\Fluid\Core\ViewHelper\Exception
* @throws \TYPO3Fluid\Fluid\Core\ViewHelper\Exception
*/
public function render()
{
Expand Down
4 changes: 2 additions & 2 deletions Classes/ViewHelpers/Media/PictureViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
*/

use TYPO3\CMS\Extbase\Domain\Model\FileReference;
use TYPO3\CMS\Fluid\Core\ViewHelper\Exception;
use TYPO3\CMS\Fluid\Core\ViewHelper\TagBuilder;
use TYPO3Fluid\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\ViewHelper\TagBuilder;
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper;

/**
Expand Down
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Media/SizeViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithContentArgumentAndRenderStatic;
Expand Down
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Media/VideoViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

use FluidTYPO3\Vhs\Traits\TagViewHelperTrait;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\ViewHelper\Exception;

/**
* Renders HTML code to embed a HTML5 video player. NOTICE: This is
Expand Down
4 changes: 2 additions & 2 deletions Classes/ViewHelpers/Menu/DeferredViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* LICENSE.md file that was distributed with this source code.
*/

use TYPO3\CMS\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\ViewHelper\Exception;

/**
* ### Page: Deferred menu rendering ViewHelper
Expand All @@ -34,7 +34,7 @@ public function initializeArguments()

/**
* @return NULL|string
* @throws \TYPO3\CMS\Fluid\Core\ViewHelper\Exception
* @throws \TYPO3Fluid\Fluid\Core\ViewHelper\Exception
*/
public function render()
{
Expand Down
4 changes: 2 additions & 2 deletions Classes/ViewHelpers/Page/Header/AlternateViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder;
use TYPO3\CMS\Extbase\Object\ObjectManagerInterface;
use TYPO3\CMS\Fluid\Core\ViewHelper\TagBuilder;
use TYPO3Fluid\Fluid\Core\ViewHelper\TagBuilder;
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;

/**
Expand All @@ -36,7 +36,7 @@ class AlternateViewHelper extends AbstractViewHelper
protected $objectManager;

/**
* @var \TYPO3\CMS\Fluid\Core\ViewHelper\TagBuilder
* @var \TYPO3Fluid\Fluid\Core\ViewHelper\TagBuilder
*/
protected $tagBuilder;

Expand Down
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Resource/AbstractImageViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use TYPO3\CMS\Core\TypoScript\TemplateService;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
use TYPO3\CMS\Fluid\Core\ViewHelper\Exception;
use TYPO3Fluid\Fluid\Core\ViewHelper\Exception;

/**
* Base class for image related view helpers adapted from FLUID
Expand Down
4 changes: 1 addition & 3 deletions Classes/ViewHelpers/Security/AllowViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* LICENSE.md file that was distributed with this source code.
*/

use TYPO3\CMS\Fluid\Core\ViewHelper\Facets\ChildNodeAccessInterface;

/**
* ### Security: Allow
*
Expand All @@ -27,6 +25,6 @@
*
* Is the mirror opposite of `v:security.deny`.
*/
class AllowViewHelper extends AbstractSecurityViewHelper implements ChildNodeAccessInterface
class AllowViewHelper extends AbstractSecurityViewHelper
{
}

0 comments on commit 457b422

Please sign in to comment.