Skip to content

Commit

Permalink
Merge pull request #20 from Leuchtfeuer/typo3v12
Browse files Browse the repository at this point in the history
[TASK] Ensure language array is set
  • Loading branch information
bmgrieger committed Apr 16, 2024
2 parents a6bbff4 + 380a674 commit 8666d7c
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 4 deletions.
8 changes: 7 additions & 1 deletion Classes/EventListener/CdnEventListener.php
Expand Up @@ -49,10 +49,16 @@ public function __construct()
break;
}
}

if (count($language) === 0 && $site = reset($allSites)) {
// if no site matches, get the first as default
$languages = $site->getAttribute('languages');
$language = reset($languages);
}
}

$config = $GLOBALS['TSFE']->config['config']['tx_awstools.'] ?? [];
$this->responsible = !empty($config['enabled']) && filter_var($language['awstools_cdn_enabled'], FILTER_VALIDATE_BOOLEAN) === true && !empty($language['awstools_cdn_host'] && $config['replacer.']['eventListener'] === '1');
$this->responsible = !empty($config['enabled']) && isset($language['awstools_cdn_enabled']) && filter_var($language['awstools_cdn_enabled'], FILTER_VALIDATE_BOOLEAN) === true && !empty($language['awstools_cdn_host'] && $config['replacer.']['eventListener'] === '1');

if ($this->responsible) {
$this->host = $language['awstools_cdn_host'];
Expand Down
29 changes: 29 additions & 0 deletions Documentation/About/Changelog/12-0-0.rst
@@ -0,0 +1,29 @@
.. include:: ../../Includes.txt

===========================
Version 12.0.0 - 2024/04/16
===========================

* Add support for TYPO3 12
* Drop support for TYPO3 11

Download
========

Download this version from the `TYPO3 extension repository <https://extensions.typo3.org/extension/aws_tools/>`__ or from
`GitHub <https://github.com/Leuchtfeuer/typo3-aws-tools/releases/tag/v12.0.0>`__.

All Changes
===========

This is a list of all changes in this release::

2024-04-16 Merge branch 'bugfix/ensure_language_is_set_20240411233' into typo3v12 (Commit 466a77c by Oliver Heins)
2024-04-12 [TASK] Ensure language array is set (Commit a299c55 by Oliver Heins)
2024-01-16 [TASK] Reactivate option to enable/disable url replacement via typoscript (Commit 24e8e68 by Andreas Engel)
2024-01-16 [TASK] Update external libraries (Commit a14aafc by Andreas Engel)
2024-01-12 [TASK] Apply rector changes (Commit b9cf1c6 by Andreas Engel)
2024-01-12 [TASK] Multiple adjustments for TYPO3 12 compatibility (Commit 458a116 by Andreas Engel)
2024-01-10 [TASK] Fix TYPO3_MODE checks (Commit ff3ce6f by Andreas Engel)
2024-01-10 [TASK] Fix TYPO3_MODE check in ext_tables.php (Commit f6514bd by Andreas Engel)
2024-01-10 [TASK] Raise requirements to TYPO3 12 (Commit 297796a by Andreas Engel)
2 changes: 2 additions & 0 deletions Documentation/About/Changelog/Index.rst
Expand Up @@ -15,6 +15,8 @@ List of Versions
.. toctree::
:titlesonly:

12-0-0
11-0-1
11-0-0
10-0-0
1-0-2
Expand Down
8 changes: 5 additions & 3 deletions Documentation/About/Index.rst
Expand Up @@ -15,13 +15,15 @@ entries.
Compatibility
=============

You need access to an Auth0 instance. We are currently supporting following TYPO3 versions:
We are currently supporting following TYPO3 versions:

.. csv-table:: Version Matrix
:header: "Extension Version", "TYPO3 v10 Support", "TYPO3 v9 Support", "TYPO3 v8 Support"
:header: "Extension Version", "TYPO3 v12 Support", "TYPO3 v11 Support", "TYPO3 v10 Support"
:align: center

"0.x", "🙋‍♂️", "🙅‍♀️", "🙅‍♀️"
"12.x", "yes", "no", "no"
"11.x", "no", "yes", "no"
"10.x", "no", "no", "yes"

.. _about-aboutAmazonCloudFront:

Expand Down

0 comments on commit 8666d7c

Please sign in to comment.