-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* drop TYPO3 v9 Support and PHP < 7.4 * add TYPO3 v12 Support * remove extbase dependency and usage of objectManager * cleanup code
- Loading branch information
Achim Fritz
committed
Nov 18, 2022
1 parent
12f414f
commit c2895c7
Showing
19 changed files
with
243 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
base: 'http://localhost/' | ||
baseVariants: { } | ||
errorHandling: { } | ||
languages: | ||
- | ||
title: english | ||
enabled: true | ||
base: / | ||
typo3Language: default | ||
locale: en_US.UTF-8 | ||
iso-639-1: en | ||
navigationTitle: '' | ||
hreflang: '' | ||
direction: '' | ||
flag: global | ||
languageId: '0' | ||
websiteTitle: '' | ||
rootPageId: 1 | ||
routes: { } | ||
websiteTitle: 'Testing' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace B13\Assetcollector\Listener; | ||
|
||
/* | ||
* This file is part of TYPO3 CMS-based extension "assetcollector" by b13. | ||
* | ||
* It is free software; you can redistribute it and/or modify it under | ||
* the terms of the GNU General Public License, either version 2 | ||
* of the License, or any later version. | ||
*/ | ||
|
||
use B13\Assetcollector\Hooks\AssetRenderer; | ||
use TYPO3\CMS\Frontend\Event\AfterCacheableContentIsGeneratedEvent; | ||
|
||
class AfterCacheableContentIsGenerated | ||
{ | ||
protected AssetRenderer $assetRenderer; | ||
|
||
public function __construct(AssetRenderer $assetRenderer) | ||
{ | ||
$this->assetRenderer = $assetRenderer; | ||
} | ||
|
||
public function __invoke(AfterCacheableContentIsGeneratedEvent $event) | ||
{ | ||
$frontendController = $event->getController(); | ||
$this->assetRenderer->collectInlineAssets([], $frontendController); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.