Skip to content

Commit

Permalink
Change middleware type
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk committed Nov 2, 2023
1 parent 0ae3248 commit b598c93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion Classes/Middleware/PageViewProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
$response = $handler->handle($request);
// Get input parameters and decrypt core name.
$parameters = $request->getQueryParams();
// Return if not this middleware
if (!isset($parameters['middleware']) || ($parameters['middleware'] != 'dlf/page-view-proxy')) {
return $response;
}
Expand Down
4 changes: 3 additions & 1 deletion Configuration/RequestMiddlewares.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
*/

return [
'frontend' => [
'backend' => [
'dlf/page-view-proxy' => [
'target' => \Kitodo\Dlf\Middleware\PageViewProxy::class,
],
],
'frontend' => [
'dlf/search-in-document' => [
'target' => \Kitodo\Dlf\Middleware\SearchInDocument::class,
'after' => [
Expand Down
1 change: 0 additions & 1 deletion Tests/Functional/Api/PageViewProxyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Kitodo\Dlf\Tests\Functional\Api;

use GuzzleHttp\Client as HttpClient;
use Kitodo\Dlf\Tests\Functional\FunctionalTestCase;
use TYPO3\CMS\Core\Utility\GeneralUtility;

Expand Down

0 comments on commit b598c93

Please sign in to comment.