-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Implement ContentBlocks cache
The whole ContentBlockDefinitionCollection object is now cached.
- Loading branch information
Showing
16 changed files
with
1,338 additions
and
1,080 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
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,47 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the TYPO3 CMS project. | ||
* | ||
* 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. | ||
* | ||
* For the full copyright and license information, please read the | ||
* LICENSE.txt file that was distributed with this source code. | ||
* | ||
* The TYPO3 project - inspiring people to share! | ||
*/ | ||
|
||
namespace TYPO3\CMS\ContentBlocks\Definition\Factory; | ||
|
||
use TYPO3\CMS\ContentBlocks\Registry\AutomaticLanguageKeysRegistry; | ||
|
||
final class CompilationResult | ||
{ | ||
public function __construct( | ||
private readonly AutomaticLanguageKeysRegistry $automaticLanguageKeys, | ||
/** | ||
* @var array<string, array> | ||
*/ | ||
private readonly array $parentReferences, | ||
private readonly array $mergedTableDefinitions, | ||
) {} | ||
|
||
public function getAutomaticLanguageKeys(): AutomaticLanguageKeysRegistry | ||
{ | ||
return $this->automaticLanguageKeys; | ||
} | ||
|
||
public function getParentReferences(): array | ||
{ | ||
return $this->parentReferences; | ||
} | ||
|
||
public function getMergedTableDefinitions(): array | ||
{ | ||
return $this->mergedTableDefinitions; | ||
} | ||
} |
Oops, something went wrong.