diff --git a/Classes/Controller/YoutubeController.php b/Classes/Controller/YoutubeController.php index d8273139e5c2342d3c8dcefeaa8c949f847fcd75..537df1c04c8cc133dc74c2933e80686f31064de3 100644 --- a/Classes/Controller/YoutubeController.php +++ b/Classes/Controller/YoutubeController.php @@ -101,12 +101,12 @@ class YoutubeController extends ActionController { } } - $typo3Version = VersionNumberUtility::getCurrentTypo3Version(); - if (version_compare($typo3Version, '13.0.0', '<')) { - $disableYoutubeCache = (bool) GeneralUtility::_GP('disableYoutubeCache'); - } else { - $disableYoutubeCache = (bool) ($this->request->getParsedBody()['disableYoutubeCache'] ?? $this->request->getQueryParams()['disableYoutubeCache'] ?? null); - } + $typo3Version = VersionNumberUtility::getCurrentTypo3Version(); + if (version_compare($typo3Version, '13.0.0', '<')) { + $disableYoutubeCache = (bool) GeneralUtility::_GP('disableYoutubeCache'); + } else { + $disableYoutubeCache = (bool) ($this->request->getParsedBody()['disableYoutubeCache'] ?? $this->request->getQueryParams()['disableYoutubeCache'] ?? NULL); + } // Add third-party filters $filterInstances = $this->handleFrontendFilters($filterValues); @@ -329,7 +329,9 @@ class YoutubeController extends ActionController { if (class_exists($filterConfig['filterClass'])) { $specificFilterValues = $filterValues[$filterName] ?? []; $filterInstance = GeneralUtility::makeInstance( - $filterConfig['filterClass'], $specificFilterValues, $filterConfig + $filterConfig['filterClass'], + $specificFilterValues, + $filterConfig ); // Register filter to modify the request before API call diff --git a/Classes/Event/AfterFilterVideosEvent.php b/Classes/Event/AfterFilterVideosEvent.php index 02d892cea4d00e0870b544d0826c328e93bc3f6a..4d47a1ba4a8da7fdc19dfc14a486484641f6ab43 100644 --- a/Classes/Event/AfterFilterVideosEvent.php +++ b/Classes/Event/AfterFilterVideosEvent.php @@ -1,4 +1,5 @@ <?php + /** * * Copyright notice diff --git a/Classes/Event/AfterMapCustomThumbnailsEvent.php b/Classes/Event/AfterMapCustomThumbnailsEvent.php index 635f17976e5d01d5f9f36d7435bddfc176e1d303..d3e542be797d9dc131d9233722ef7eb1b5db0e21 100644 --- a/Classes/Event/AfterMapCustomThumbnailsEvent.php +++ b/Classes/Event/AfterMapCustomThumbnailsEvent.php @@ -1,4 +1,5 @@ <?php + /** * * Copyright notice diff --git a/Classes/Event/AfterYoutubeCallEvent.php b/Classes/Event/AfterYoutubeCallEvent.php index 11bd4b6709ba3b54a0718209a5b333e4b642e1f6..689d45bdc1c4cbb54422640fce43e8640cb7902c 100644 --- a/Classes/Event/AfterYoutubeCallEvent.php +++ b/Classes/Event/AfterYoutubeCallEvent.php @@ -1,4 +1,5 @@ <?php + /** * * Copyright notice diff --git a/Classes/Event/BeforeYoutubeCallEvent.php b/Classes/Event/BeforeYoutubeCallEvent.php index cb4e3e4cad910abc2bb670d4de8ba854d2d6d2b2..b3aa1d46d2868badb14741fa12f74c699a49a938 100644 --- a/Classes/Event/BeforeYoutubeCallEvent.php +++ b/Classes/Event/BeforeYoutubeCallEvent.php @@ -1,4 +1,5 @@ <?php + /** * * Copyright notice @@ -32,38 +33,78 @@ namespace SGalinski\SgYoutube\Event; final class BeforeYoutubeCallEvent { private array $parameters; + private int $maxResultsWithFilters; + + private string $queryString; + + private string $apiKey; + + private mixed $id; + public function __construct(array $parameters) { $this->parameters = $parameters; } + public function getParamters(): array { + return $this->parameters; + } + + /** + * @return mixed + */ public function getId() { return $this->id; } + /** + * @param $id + * @return void + */ public function setId($id): void { $this->id = $id; } - public function getMaxResultsWithFilters() { + /** + * @return int + */ + public function getMaxResultsWithFilters(): int { return $this->maxResultsWithFilters; } - public function setMaxResultsWithFilters($maxResultsWithFilters): void { + /** + * @param int $maxResultsWithFilters + * @return void + */ + public function setMaxResultsWithFilters(int $maxResultsWithFilters): void { $this->maxResultsWithFilters = $maxResultsWithFilters; } + /** + * @return string + */ public function getApiKey(): string { return $this->apiKey; } + /** + * @param string $apiKey + * @return void + */ public function setApiKey(string $apiKey): void { $this->apiKey = $apiKey; } + /** + * @return string + */ public function getQueryString(): string { return $this->queryString; } + /** + * @param string $queryString + * @return void + */ public function setQueryString(string $queryString): void { $this->queryString = $queryString; } diff --git a/Classes/EventListeners/AfterBackendPageRenderEventListener.php b/Classes/EventListeners/AfterBackendPageRenderEventListener.php index ff87fabe238ed9d79916ac5289ef28b8d8d5f968..939a72685f2d20867db1953a019656866c616cf4 100644 --- a/Classes/EventListeners/AfterBackendPageRenderEventListener.php +++ b/Classes/EventListeners/AfterBackendPageRenderEventListener.php @@ -1,4 +1,5 @@ <?php + /*************************************************************** * Copyright notice * diff --git a/Classes/EventListeners/AfterFilterVideosEventListener.php b/Classes/EventListeners/AfterFilterVideosEventListener.php index 546bd819030266ca5e55587ed46a82435bca1933..53a98d28c3e0314c1063e288f1bbaacccc1054c5 100644 --- a/Classes/EventListeners/AfterFilterVideosEventListener.php +++ b/Classes/EventListeners/AfterFilterVideosEventListener.php @@ -1,4 +1,5 @@ <?php + /*************************************************************** * Copyright notice * diff --git a/Classes/EventListeners/AfterMapCustomThumbnailsEventListener.php b/Classes/EventListeners/AfterMapCustomThumbnailsEventListener.php index ceec9a03a0f8be586119894f1544a215142c42ad..54123fbb82bf5240e48baa262a8a0e5f17b7e825 100644 --- a/Classes/EventListeners/AfterMapCustomThumbnailsEventListener.php +++ b/Classes/EventListeners/AfterMapCustomThumbnailsEventListener.php @@ -1,4 +1,5 @@ <?php + /*************************************************************** * Copyright notice * diff --git a/Classes/EventListeners/AfterYoutubeCallEventListener.php b/Classes/EventListeners/AfterYoutubeCallEventListener.php index a8504826ff4c557bf3a53493b923e1c91c9bb9c9..0b26969d8f7aeac4e20fda94d10eb14503d76030 100644 --- a/Classes/EventListeners/AfterYoutubeCallEventListener.php +++ b/Classes/EventListeners/AfterYoutubeCallEventListener.php @@ -1,4 +1,5 @@ <?php + /*************************************************************** * Copyright notice * @@ -25,10 +26,13 @@ namespace SGalinski\SgYoutube\EventListeners; -use SGalinski\SgYoutube\Event\AfterVimeoCallEvent; +use SGalinski\SgYoutube\Event\AfterYoutubeCallEvent; +/** + * AfterYoutubeCallEventListener + */ class AfterYoutubeCallEventListener { - public function __invoke(AfterVimeoCallEvent $event): void { + public function __invoke(AfterYoutubeCallEvent $event): void { $jsonArray = $event->getJsonArray(); // Add custom data $jsonArray['customData'] = 'This is some custom data'; diff --git a/Classes/EventListeners/BeforeYoutubeCallEventListener.php b/Classes/EventListeners/BeforeYoutubeCallEventListener.php index 758e4f181544a2e697166f766c4fd356a0e02a42..f5a592092fdbd671fbb70e6c626f73c81dfaafc8 100644 --- a/Classes/EventListeners/BeforeYoutubeCallEventListener.php +++ b/Classes/EventListeners/BeforeYoutubeCallEventListener.php @@ -1,4 +1,5 @@ <?php + /*************************************************************** * Copyright notice * @@ -25,15 +26,15 @@ namespace SGalinski\SgYoutube\EventListeners; -use SGalinski\SgYoutube\Event\BeforeVimeoCallEvent; +use SGalinski\SgYoutube\Event\BeforeYoutubeCallEvent; /** * Called before we call the YouTube API */ class BeforeYoutubeCallEventListener { - public function __invoke(BeforeVimeoCallEvent $event): void { + public function __invoke(BeforeYoutubeCallEvent $event): void { // Change the max results because we want to filter some more $event->setMaxResultsWithFilters($event->getMaxResultsWithFilters() + 10); -// $event->setApiKey('new-api-key'); + // $event->setApiKey('new-api-key'); } } diff --git a/Classes/EventListeners/PageContentPreviewRenderingEventListener.php b/Classes/EventListeners/PageContentPreviewRenderingEventListener.php index 744587457224b4bde2273f7ba1be14e5069b1fbc..15a36e9ba81ac2658a4a331afabf261b7f7d4246 100644 --- a/Classes/EventListeners/PageContentPreviewRenderingEventListener.php +++ b/Classes/EventListeners/PageContentPreviewRenderingEventListener.php @@ -1,4 +1,5 @@ <?php + /*************************************************************** * Copyright notice * diff --git a/Classes/Filter/DurationFilter.php b/Classes/Filter/DurationFilter.php index baa9f3b92f3a8d66cfc6f8254c7298d54f5ca64c..8d1b0844512fb7b7ab5109a7f87d48a6438ff4f8 100644 --- a/Classes/Filter/DurationFilter.php +++ b/Classes/Filter/DurationFilter.php @@ -1,4 +1,5 @@ <?php + /*************************************************************** * Copyright notice * diff --git a/Classes/Filter/FilterInterface.php b/Classes/Filter/FilterInterface.php index ca591861b9fc1607b3ec709eafc51b32a8ee6f84..96361de2ce954eb61d998277f7293c4832a879f1 100644 --- a/Classes/Filter/FilterInterface.php +++ b/Classes/Filter/FilterInterface.php @@ -1,4 +1,5 @@ <?php + /*************************************************************** * Copyright notice * diff --git a/Classes/Filter/FilterParameterBag.php b/Classes/Filter/FilterParameterBag.php index 3d40f7cb745fa7743468e1dd91a8edcfb7d55b5f..919e7f55055e3db10edd963030f5438d21583cf6 100644 --- a/Classes/Filter/FilterParameterBag.php +++ b/Classes/Filter/FilterParameterBag.php @@ -1,4 +1,5 @@ <?php + /*************************************************************** * Copyright notice * @@ -28,12 +29,12 @@ namespace SGalinski\SgYoutube\Filter; class FilterParameterBag { protected array $parameters; protected array $filterInstances; - protected bool $disableCache = FALSE; + protected bool $disableCache = FALSE; public function __construct(array $parameters = [], array $filterInstances = [], bool $disableCache = FALSE) { $this->parameters = $parameters; $this->filterInstances = $filterInstances; - $this->disableCache = $disableCache; + $this->disableCache = $disableCache; } public function get(string $key, $default = NULL) { @@ -64,13 +65,11 @@ class FilterParameterBag { $this->filterInstances = $filterInstances; } - public function getDisableCache(): bool - { - return $this->disableCache; - } + public function getDisableCache(): bool { + return $this->disableCache; + } - public function setDisableCache(bool $disableCache): void - { - $this->disableCache = $disableCache; - } + public function setDisableCache(bool $disableCache): void { + $this->disableCache = $disableCache; + } } diff --git a/Classes/Filter/QueryStringFilter.php b/Classes/Filter/QueryStringFilter.php index 403798e6762c27316dc046f5350c05f3de8b39e8..6e19f4392baf269bf90a414e7b46ddae6e6344f6 100644 --- a/Classes/Filter/QueryStringFilter.php +++ b/Classes/Filter/QueryStringFilter.php @@ -1,4 +1,5 @@ <?php + /*************************************************************** * Copyright notice * @@ -58,7 +59,6 @@ class QueryStringFilter implements FilterInterface { * @param array $data */ public function modifyResponse(array &$data): void { - } public function getFilterValues(): array { diff --git a/Classes/Preview/PreviewService.php b/Classes/Preview/PreviewService.php index e19b4d9374cae9d43e3f10458d6c73a5b767bdff..6634a5636f584283cdcac1c0226b677868ce98f6 100644 --- a/Classes/Preview/PreviewService.php +++ b/Classes/Preview/PreviewService.php @@ -61,13 +61,16 @@ class PreviewService { 'isShorts' => (int) ($this->passVDefOnKeyToTemplate($settingsDef, 'settings.isShorts') ?? 1), 'showTitle' => (int) ($this->passVDefOnKeyToTemplate($settingsAppearance, 'settings.showTitle') ?? 1), 'showDescription' => (int) ($this->passVDefOnKeyToTemplate( - $settingsAppearance, 'settings.showDescription' + $settingsAppearance, + 'settings.showDescription' ) ?? 1), 'disableLightbox' => (int) ($this->passVDefOnKeyToTemplate( - $settingsBehavior, 'settings.disableLightbox' + $settingsBehavior, + 'settings.disableLightbox' ) ?? 1), 'disableLightboxMobile' => (int) ($this->passVDefOnKeyToTemplate( - $settingsBehavior, 'settings.disableLightboxMobile' + $settingsBehavior, + 'settings.disableLightboxMobile' ) ?? 1), 'aspectRatio' => $this->passVDefOnKeyToTemplate($settingsAppearance, 'settings.aspectRatio'), 'thumbnailType' => $this->passVDefOnKeyToTemplate($settingsAppearance, 'settings.thumbnailType'), @@ -79,13 +82,14 @@ class PreviewService { $view->assign('data', $templateData); $view->assign( - 'headerLabel', BackendUtility::getLabelFromItemListMerged( - $row['pid'], - 'tt_content', - 'list_type', - $row['list_type'], - $row - ) + 'headerLabel', + BackendUtility::getLabelFromItemListMerged( + $row['pid'], + 'tt_content', + 'list_type', + $row['list_type'], + $row + ) ); return $view; } diff --git a/Classes/Service/LicenceCheckService.php b/Classes/Service/LicenceCheckService.php index fd80df762d0b63c399164ca95b4643caeec26a1c..ada807117ba63567f5334d8db37f57a2abb3a8ef 100644 --- a/Classes/Service/LicenceCheckService.php +++ b/Classes/Service/LicenceCheckService.php @@ -131,12 +131,13 @@ class LicenceCheckService { '8.0.0' => 1729271668, // Tue, 18 Oct 2024 20:57:50 GMT+3 '8.0.1' => 1732058531, // Tue, 19 Nov 2024 23:15:50 GMT+3 '8.1.0' => 1733341275, // Wed, 04 Dez 2024 20:57:50 GMT+3 - ]; + '8.1.1' => 1737826502, // 2025-01-25T17:35:02Z +]; /** * The current extension version */ - public const CURRENT_VERSION = '8.1.0'; + public const CURRENT_VERSION = '8.1.1'; /** * @param mixed $validUntil A timestamp, which says the lifetime of this key. diff --git a/Classes/Service/YoutubeService.php b/Classes/Service/YoutubeService.php index 05deb35d1c2f0e7ddb2218f10e576a5666b97475..9b7b229c0d2414bf659697cb954c4815b8ee92bc 100644 --- a/Classes/Service/YoutubeService.php +++ b/Classes/Service/YoutubeService.php @@ -29,8 +29,6 @@ namespace SGalinski\SgYoutube\Service; use Exception; use GuzzleHttp\Exception\ClientException; use InvalidArgumentException; -use Psr\EventDispatcher\EventDispatcherInterface; -use SGalinski\SgYoutube\Event\BeforeYoutubeRESTEvent; use SGalinski\SgYoutube\Filter\FilterParameterBag; use TYPO3\CMS\Core\Cache\Frontend\FrontendInterface; use TYPO3\CMS\Core\Context\Context; @@ -57,7 +55,7 @@ class YoutubeService { /** * @var FrontendInterface */ - protected $cache; + protected FrontendInterface $cache; /** * @param FrontendInterface $cache @@ -68,7 +66,7 @@ class YoutubeService { /** * Maps the json array from the YouTube call to return some unified value. The output from YouTube is pretty - * unsteady. Also we calculate the correct thumbnail sized and so on. + * unsteady. Also, we calculate the correct thumbnail sized and so on. * * @param array $jsonArray * @param string $youtubeId @@ -80,12 +78,12 @@ class YoutubeService { * @throws Exception */ public function mapArray( - $jsonArray = [], - $youtubeId = '', - $aspectRatio = '16:9', - $thumbnailType = 'byAspectRatio', - $apiKey = '', - $isShorts = FALSE + array $jsonArray = [], + string $youtubeId = '', + string $aspectRatio = '16:9', + string $thumbnailType = 'byAspectRatio', + string $apiKey = '', + bool $isShorts = FALSE ): array { if (count($jsonArray) <= 0) { return $jsonArray; @@ -172,10 +170,10 @@ class YoutubeService { * @param array $jsonArray * @param string $apiKey * @param int $currentLanguageUid - * * @return array + * @throws Exception */ - protected function addLocalizationData(array $jsonArray, $apiKey, $currentLanguageUid): array { + protected function addLocalizationData(array $jsonArray, string $apiKey, int $currentLanguageUid): array { if (!$apiKey || !$currentLanguageUid || count($jsonArray) <= 0) { return $jsonArray; } @@ -186,8 +184,8 @@ class YoutubeService { self::API_PART_LOCALIZATIONS ); if (!isset($localizationData['items']) || (is_countable($localizationData['items']) ? count( - $localizationData['items'] - ) : 0) <= 0) { + $localizationData['items'] + ) : 0) <= 0) { return $jsonArray; } @@ -312,17 +310,13 @@ class YoutubeService { /** * Returns a JSON array with the video details (title, description, preview image, url) * - * @param string $youtubeId - * @param string $maxResults - * @param string $apiKey - * @param string $url - * @param string $queryString + * @param FilterParameterBag $parameterBag * @return array|mixed * @throws Exception */ public function getJsonAsArray( FilterParameterBag $parameterBag - ) { + ): mixed { $parameters = $parameterBag->all(); // Dynamically build the API URL if not given @@ -330,8 +324,8 @@ class YoutubeService { $cacheKey = 'sg_youtube' . sha1($url); - $disableYoutubeCache = $parameterBag->getDisableCache(); - + $disableYoutubeCache = $parameterBag->getDisableCache(); + if (!$disableYoutubeCache) { $cachedResult = $this->cache->get($cacheKey); if ($cachedResult) { @@ -397,7 +391,8 @@ class YoutubeService { * @return string */ public function getApiUrl( - array $params, array $filters + array $params, + array $filters ): string { $youtubeId = $params['id'] ?? ''; $maxResults = $params['maxResults'] ?? ''; @@ -441,7 +436,7 @@ class YoutubeService { * @param string $youtubeId * @return array|string */ - protected function removeIdParameters($youtubeId = '') { + protected function removeIdParameters(string $youtubeId = ''): array|string { if (strpos($youtubeId, '&')) { return explode('&', $youtubeId)[0]; } diff --git a/Classes/Upgrades/ThumbnailsUpgradeWizard.php b/Classes/Upgrades/ThumbnailsUpgradeWizard.php index c84b2c343ee9681f96b89162b49944ca9a862c28..0dde3cb7e781976d3b4e7a08b05072de42836fb4 100644 --- a/Classes/Upgrades/ThumbnailsUpgradeWizard.php +++ b/Classes/Upgrades/ThumbnailsUpgradeWizard.php @@ -27,11 +27,15 @@ namespace SGalinski\SgYoutube\Upgrades; +use Doctrine\DBAL\Exception; use TYPO3\CMS\Core\Database\ConnectionPool; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Install\Attribute\UpgradeWizard; use TYPO3\CMS\Install\Updates\UpgradeWizardInterface; +/** + * ThumbnailsUpgradeWizard + */ #[UpgradeWizard('sgYoutube_thumbnailsUpgradeWizard')] final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface { /** @@ -50,7 +54,7 @@ final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface { public function executeUpdate(): bool { $connection = GeneralUtility::makeInstance(ConnectionPool::class) - ->getConnectionForTable('sys_file_reference'); + ?->getConnectionForTable('sys_file_reference'); $queryBuilder = $connection->createQueryBuilder(); $queryBuilder @@ -58,7 +62,8 @@ final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface { ->set('fieldname', 'settings.thumbnailImages') ->where( $queryBuilder->expr()->eq( - 'fieldname', $queryBuilder->createNamedParameter('tx_sgyoutube_thumbnail_image') + 'fieldname', + $queryBuilder->createNamedParameter('tx_sgyoutube_thumbnail_image') ) ); @@ -66,9 +71,12 @@ final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface { return TRUE; } + /** + * @throws Exception + */ public function updateNecessary(): bool { $connection = GeneralUtility::makeInstance(ConnectionPool::class) - ->getConnectionForTable('sys_file_reference'); + ?->getConnectionForTable('sys_file_reference'); $queryBuilder = $connection->createQueryBuilder(); $queryBuilder->getRestrictions()->removeAll(); @@ -78,7 +86,8 @@ final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface { ->from('sys_file_reference') ->where( $queryBuilder->expr()->eq( - 'fieldname', $queryBuilder->createNamedParameter('tx_sgyoutube_thumbnail_image') + 'fieldname', + $queryBuilder->createNamedParameter('tx_sgyoutube_thumbnail_image') ) ) ->executeQuery() @@ -87,7 +96,11 @@ final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface { return (int) $count > 0; } + /** + * @return array|string[] + */ public function getPrerequisites(): array { // Add your logic here + return []; } } diff --git a/Classes/ViewHelpers/PictureViewHelper.php b/Classes/ViewHelpers/PictureViewHelper.php index 9383a17d8471ca58bbf96913b240dfa326626f7f..b0f3598a704d12bbe7fa9cad6b528c568acf5cc2 100644 --- a/Classes/ViewHelpers/PictureViewHelper.php +++ b/Classes/ViewHelpers/PictureViewHelper.php @@ -248,11 +248,11 @@ class PictureViewHelper extends AbstractViewHelper { $fileExtension = $originalFile->getProperty('extension'); $convertToWebp = !$disableWebp && ( - $fileExtension === 'png' + $fileExtension === 'png' || $fileExtension === 'jpg' || $fileExtension === 'jpeg' || $fileExtension === 'webp' - ); + ); $imageUrl = self::getImage($image, $sizes, 'default', $convertToWebp); // Don't add a scaled version for SVG's. This is not necessary at all diff --git a/Configuration/JavaScriptModules.php b/Configuration/JavaScriptModules.php index dc869e50173842edd2c8192dc30c893e6c20998f..f5aad5c10a853d51efda0ef9a0a70d41a92fe385 100644 --- a/Configuration/JavaScriptModules.php +++ b/Configuration/JavaScriptModules.php @@ -1,4 +1,5 @@ <?php + /*************************************************************** * Copyright notice * diff --git a/Configuration/Services.php b/Configuration/Services.php index 61de17da2224e4e4b21f4d1b4ed31cbad1d2ea74..75dcdd4e419cc3ac2cd53bc6ac6a9bce0a2195b8 100644 --- a/Configuration/Services.php +++ b/Configuration/Services.php @@ -1,4 +1,5 @@ <?php + /*************************************************************** * Copyright notice * diff --git a/Configuration/TCA/Overrides/tt_content.php b/Configuration/TCA/Overrides/tt_content.php index aaca4ae40372188c33a4940db9685c22d96ab4ef..4e1f96deaba9617580565ea7b9d7e72e71726b57 100644 --- a/Configuration/TCA/Overrides/tt_content.php +++ b/Configuration/TCA/Overrides/tt_content.php @@ -7,9 +7,9 @@ $pluginSignature = ExtensionUtility::registerPlugin( 'SgYoutube', 'Youtube', 'YouTube Videos', - 'extension-sg_youtube', - 'plugins', - 'LLL:EXT:sg_youtube/Resources/Private/Language/locallang.xlf:youtubePluginDescription' + 'extension-sg_youtube', + 'plugins', + 'LLL:EXT:sg_youtube/Resources/Private/Language/locallang.xlf:youtubePluginDescription' ); $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform'; diff --git a/Event/PreYoutubeApiCallEvent.php b/Event/PreYoutubeApiCallEvent.php index 6e3a5f23df73edeabd4ff3825ab06add507bb77a..a6210851115f77d16b71be2d62b4a69d2cfe670f 100644 --- a/Event/PreYoutubeApiCallEvent.php +++ b/Event/PreYoutubeApiCallEvent.php @@ -7,7 +7,9 @@ final class PreYoutubeApiCallEvent { private $maxResultsWithFilters; private $apiKey; public function __construct( - $id, $maxResultsWithFilters, $apiKey + $id, + $maxResultsWithFilters, + $apiKey ) { $this->id = $id; $this->maxResultsWithFilters = $maxResultsWithFilters; diff --git a/composer.json b/composer.json index c7cd8e277c468dec79df22417fc05073ccf750a3..47d4597b1c3753556f3fa6af16c68c12b9f54319 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "description": "A solution for embedding YouTube videos, playlists, or channels easily into TYPO3 pages.", "homepage": "https://www.sgalinski.de", "license": "GPL-2.0-or-later", - "version": "8.1.0", + "version": "8.1.1", "require": { "typo3/cms-core": "^12.4 || ^13.4" }, diff --git a/ext_emconf.php b/ext_emconf.php index fcbc2ab1524a94a9d0e14cb04797882f2937b7f2..cbd3a93dc7b477a47e2f7f08e1f950ce0874dc76 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -32,11 +32,11 @@ $EM_CONF['sg_youtube'] = [ 'author_email' => 'stefan@sgalinski.de', 'author_company' => 'sgalinski Internet Services (https://www.sgalinski.de)', 'state' => 'stable', - 'version' => '8.1.0', + 'version' => '8.1.1', 'constraints' => [ 'depends' => [ 'typo3' => '12.4.0-13.4.99', - 'php' => '8.1.0-8.3.99', + 'php' => '8.1.1-8.3.99', ], 'conflicts' => [], 'suggests' => [], diff --git a/ext_localconf.php b/ext_localconf.php index 6bfb8ebd4de1a55f54357548c072fbdbc9b5b19a..8a32a884f39401ad112a29932497954ece917999 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -4,8 +4,8 @@ use SGalinski\SgYoutube\Controller\YoutubeController; use SGalinski\SgYoutube\Form\Element\LicenceStatus; use SGalinski\SgYoutube\Hooks\LicenceCheckHook; use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; -use TYPO3\CMS\Extbase\Utility\ExtensionUtility; use TYPO3\CMS\Core\Utility\VersionNumberUtility; +use TYPO3\CMS\Extbase\Utility\ExtensionUtility; if ($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['sg_youtube']['uncached'] ?? FALSE) { // Uncached version @@ -32,10 +32,10 @@ if ($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['sg_youtube']['uncached'] ?? FALSE $currentTypo3Version = VersionNumberUtility::getCurrentTypo3Version(); if (version_compare($currentTypo3Version, '13.0.0', '<')) { -// include Plugin sg_youtube - ExtensionManagementUtility::addPageTSConfig( - '@import "EXT:sg_youtube/Configuration/TsConfig/Page/NewContentElementWizard.tsconfig"' - ); + // include Plugin sg_youtube + ExtensionManagementUtility::addPageTSConfig( + '@import "EXT:sg_youtube/Configuration/TsConfig/Page/NewContentElementWizard.tsconfig"' + ); } // Caching