Skip to content

Commit

Permalink
[TASK] Support v11/v12
Browse files Browse the repository at this point in the history
  • Loading branch information
georgringer committed Feb 2, 2024
1 parent 0dd8bb5 commit e94037d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 15 deletions.
8 changes: 2 additions & 6 deletions Classes/Http/TrailingSlashRedirect.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

namespace StudioMitte\Redirect2trailingslash\Http;

Expand All @@ -17,11 +18,6 @@ class TrailingSlashRedirect implements MiddlewareInterface, LoggerAwareInterface
{
use LoggerAwareTrait;

/**
* @param ServerRequestInterface $request
* @param RequestHandlerInterface $handler
* @return ResponseInterface
*/
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
$site = $request->getAttribute('site', null);
Expand All @@ -35,7 +31,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
$redirectUri,
$this->getStatusCode(),
[
'X-Redirect-By' => 'TYPO3 Redirect2TrailingSlash Redirect'
'X-Redirect-By' => 'TYPO3 Redirect2TrailingSlash Redirect',
]
);
}
Expand Down
2 changes: 0 additions & 2 deletions Configuration/RequestMiddlewares.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

$rearrangedMiddlewares = true;

return [
'frontend' => [
'typo3/redirect2trailingslash/redirect' => [
Expand Down
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This extension redirects urls without a trailing slash to the one with a `/` at

## Requirements

* TYPO3 10 LTS or 11 LTS
* TYPO3 11 LTS or 12 LTS

## Installation and Setup
Install this extension, either by downloading from the TER or by using composer with `composer require studiomitte/redirect2trailingslash`.
Expand Down
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,13 @@
"GPL-2.0-or-later"
],
"require": {
"typo3/cms-core": "^10.4 || ^11.5"
"typo3/cms-core": "^11.5 || ^12.4"
},
"autoload": {
"psr-4": {
"StudioMitte\\Redirect2trailingslash\\": "Classes"
}
},
"replace": {
"typo3-ter/redirect2trailingslash": "self.version"
},
"extra": {
"typo3/cms": {
"extension-key": "redirect2trailingslash"
Expand Down
4 changes: 2 additions & 2 deletions ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
'author_email' => 'gr@studiomitte.com',
'state' => 'beta',
'clearCacheOnLoad' => true,
'version' => '1.1.0',
'version' => '2.0.0',
'constraints' => [
'depends' => [
'typo3' => '10.4.20-11.5.99',
'typo3' => '11.5.30-12.4.99',
],
'conflicts' => [],
'suggests' => [],
Expand Down

0 comments on commit e94037d

Please sign in to comment.