Skip to content
Snippets Groups Projects
Commit 9ac16060 authored by Matthias Adrowski's avatar Matthias Adrowski
Browse files

[TASK] Cleanup, port back to php 7.3

parent 916bfd38
No related branches found
Tags 2.1.7
No related merge requests found
......@@ -20,13 +20,12 @@ namespace SGalinski\SgVimeo\Hooks\PageLayoutView;
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
use SGalinski\SgTeaser\Preview\PreviewService;
use SGalinski\SgVimeo\Preview\PreviewService;
use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Backend\View\PageLayoutView;
use TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
use TYPO3\CMS\Core\Localization\LanguageService;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Fluid\View\StandaloneView;
/**
* Class PluginRenderer
......@@ -36,7 +35,11 @@ use TYPO3\CMS\Fluid\View\StandaloneView;
* @deprecated All of this class will be removed when PageLayoutView support is dropped
*/
class PluginRenderer implements PageLayoutViewDrawItemHookInterface {
protected PreviewService $previewService;
/**
* @var PreviewService
*/
protected $previewService;
public function init() {
$this->previewService = GeneralUtility::makeInstance(PreviewService::class);
......
......@@ -21,19 +21,19 @@
namespace SGalinski\SgVimeo\Preview;
use TYPO3\CMS\Backend\Preview\PreviewRendererInterface;
use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem;
use TYPO3\CMS\Core\Localization\LanguageService;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Fluid\View\StandaloneView;
class PreviewRenderer implements PreviewRendererInterface {
/**
* @var LanguageService $languageService
*/
protected LanguageService $languageService;
protected $languageService;
protected PreviewService $previewService;
/**
* @var PreviewService
*/
protected $previewService;
public function __construct(LanguageService $languageService, PreviewService $previewService) {
$this->languageService = $languageService;
......
......@@ -40,7 +40,7 @@ $EM_CONF['sg_vimeo'] = [
'constraints' => [
'depends' => [
'typo3' => '10.4.0-11.5.99',
'php' => '7.4.0-8.1.99',
'php' => '7.3.0-8.1.99',
],
'conflicts' => [],
'suggests' => [],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment