Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into typo3-11
Browse files Browse the repository at this point in the history
# Conflicts:
#	Classes/EventListener/CdnEventListener.php
#	Classes/Middleware/ContentReplaceMiddleware.php
#	ext_emconf.php
  • Loading branch information
bitmotionAE committed Nov 2, 2023
2 parents 3d6aee6 + 0e7d068 commit e5737c6
Show file tree
Hide file tree
Showing 20 changed files with 47 additions and 28 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
custom: ["https://www.Leuchtfeuer.com"]
github: flossels
2 changes: 1 addition & 1 deletion .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $headerComment = <<<COMMENT
This file is part of the "AWS Tools" extension for TYPO3 CMS.
For the full copyright and license information, please read the
LICENSE.txt file that was distributed with this source code.
Florian Wessels <f.wessels@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
<dev@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
COMMENT;


Expand Down
2 changes: 1 addition & 1 deletion Classes/Command/InvalidationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This file is part of the "AWS Tools" extension for TYPO3 CMS.
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
* Florian Wessels <f.wessels@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
* <dev@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
*/

namespace Leuchtfeuer\AwsTools\Command;
Expand Down
2 changes: 1 addition & 1 deletion Classes/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This file is part of the "AWS Tools" extension for TYPO3 CMS.
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
* Florian Wessels <f.wessels@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
* <dev@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
*/

namespace Leuchtfeuer\AwsTools;
Expand Down
2 changes: 1 addition & 1 deletion Classes/Controller/BackendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This file is part of the "AWS Tools" extension for TYPO3 CMS.
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
* Florian Wessels <f.wessels@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
* <dev@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
*/

namespace Leuchtfeuer\AwsTools\Controller;
Expand Down
2 changes: 1 addition & 1 deletion Classes/Controller/InvalidationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This file is part of the "AWS Tools" extension for TYPO3 CMS.
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
* Florian Wessels <f.wessels@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
* <dev@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
*/

namespace Leuchtfeuer\AwsTools\Controller;
Expand Down
2 changes: 1 addition & 1 deletion Classes/Domain/Repository/CloudFrontRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This file is part of the "AWS Tools" extension for TYPO3 CMS.
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
* Florian Wessels <f.wessels@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
* <dev@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
*/

namespace Leuchtfeuer\AwsTools\Domain\Repository;
Expand Down
2 changes: 1 addition & 1 deletion Classes/Domain/Transfer/ExtensionConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This file is part of the "AWS Tools" extension for TYPO3 CMS.
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
* Florian Wessels <f.wessels@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
* <dev@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
*/

namespace Leuchtfeuer\AwsTools\Domain\Transfer;
Expand Down
6 changes: 3 additions & 3 deletions Classes/EventListener/CdnEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This file is part of the "AWS Tools" extension for TYPO3 CMS.
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
* Florian Wessels <f.wessels@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
* <dev@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
*/

namespace Leuchtfeuer\AwsTools\EventListener;
Expand Down Expand Up @@ -51,8 +51,8 @@ public function __construct()
}
}

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

if ($this->responsible) {
$this->host = $language['awstools_cdn_host'];
Expand Down
2 changes: 1 addition & 1 deletion Classes/EventListener/EditIconsEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This file is part of the "AWS Tools" extension for TYPO3 CMS.
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
* Florian Wessels <f.wessels@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
* <dev@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
*/

namespace Leuchtfeuer\AwsTools\EventListener;
Expand Down
2 changes: 1 addition & 1 deletion Classes/EventListener/FileInvalidationEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This file is part of the "AWS Tools" extension for TYPO3 CMS.
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
* Florian Wessels <f.wessels@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
* <dev@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
*/

namespace Leuchtfeuer\AwsTools\EventListener;
Expand Down
2 changes: 1 addition & 1 deletion Classes/Factory/CloudFrontFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This file is part of the "AWS Tools" extension for TYPO3 CMS.
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
* Florian Wessels <f.wessels@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
* <dev@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
*/

namespace Leuchtfeuer\AwsTools\Factory;
Expand Down
8 changes: 2 additions & 6 deletions Classes/Middleware/ContentReplaceMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This file is part of the "AWS Tools" extension for TYPO3 CMS.
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
* Florian Wessels <f.wessels@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
* <dev@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
*/

namespace Leuchtfeuer\AwsTools\Middleware;
Expand All @@ -23,11 +23,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
$response = $handler->handle($request);
$config = $GLOBALS['TSFE']->config['config']['tx_awstools.'] ?? [];

if (filter_var($language['awstools_cdn_enabled'] ?? false, FILTER_VALIDATE_BOOLEAN) === false
|| empty($language['awstools_cdn_host'])
|| empty($config['enabled'])
|| $config['replacer.']['middleware'] !== '1'
) {
if (filter_var($language['awstools_cdn_enabled'], FILTER_VALIDATE_BOOLEAN) === false || empty($language['awstools_cdn_host']) || $config['replacer.']['middleware'] !== '1') {
return $response;
}

Expand Down
2 changes: 1 addition & 1 deletion Classes/TCA/FilePermissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This file is part of the "AWS Tools" extension for TYPO3 CMS.
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
* Florian Wessels <f.wessels@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
* <dev@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
*/

namespace Leuchtfeuer\AwsTools\TCA;
Expand Down
23 changes: 23 additions & 0 deletions Documentation/About/Changelog/10-0-0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.. include:: ../../Includes.txt

==========================
Version 10.0.0 - 2023/06/30
==========================

* Add possibility to deactivate url replacement through eventlistener or middleware
* Changes the major version number of the extension equivalent to the supported TYPO3 version.

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/v10.0.0>`__.

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

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

2023-06-30 [TASK] change author (Commit 9175f48 by Marcus Balasch)
2023-06-21 [TASK] Add possibility to deactivate url replacement through eventlistener or middleware (#7) (Commit cc63e72 by Fabian Martin)
2022-03-28 [TASK] Inlucde latest vendor package changes (Commit 43e4fa3 by Max Rösch)
1 change: 1 addition & 0 deletions Documentation/About/Changelog/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ List of Versions
.. toctree::
:titlesonly:

10-0-0
1-0-2
1-0-1
1-0-0
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ AWS Tools for TYPO3
2020

:Authors:
Florian Wessels, Leuchtfeuer Digital Marketing
Marcus Balasch, Leuchtfeuer Digital Marketing

:Email:
[email protected]
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Settings.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project = Amazon Web Services (AWS) Toolbox for TYPO3
release = 1.0.0
copyright = since 2020 by the authors

t3author = Florian Wessels, Leuchtfeuer Digital Marketing
t3author = Leuchtfeuer Digital Marketing
description = This extension connects your TYPO3 instance to Amazon CloudFront. It rewrites all file paths in the frontend to
match your CDN domain. You also have the possibility to invalidate Amazon CloudFront entries.

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
],
"type": "typo3-cms-extension",
"license": "GPL-2.0-or-later",
"homepage": "https://www.Leuchtfeuer.com",
"homepage": "https://www.leuchtfeuer.com",
"authors": [
{
"name": "Florian Wessels",
"email": "f.wessels@Leuchtfeuer.com",
"name": "Dev",
"email": "dev@Leuchtfeuer.com",
"role": "Developer",
"homepage": "https://www.Leuchtfeuer.com"
}
Expand Down
4 changes: 2 additions & 2 deletions ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$EM_CONF['aws_tools'] = [
'title' => 'Amazon Web Services (AWS) Toolbox',
'description' => 'This extension connects your TYPO3 instance to Amazon CloudFront. It rewrites all file paths in the frontend to match your CDN domain. You also have the possibility to invalidate Amazon CloudFront entries.',
'version' => '1.0.5',
'version' => '10.0.0',
'category' => 'misc',
'constraints' => [
'depends' => [
Expand All @@ -15,7 +15,7 @@
'state' => 'stable',
'uploadfolder' => false,
'clearCacheOnLoad' => false,
'author' => 'Florian Wessels',
'author' => 'Dev',
'author_email' => '[email protected]',
'author_company' => 'Leuchtfeuer Digital Marketing',
'autoload' => [
Expand Down

0 comments on commit e5737c6

Please sign in to comment.