-
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.
- Loading branch information
Showing
3 changed files
with
39 additions
and
4 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,38 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Colorcube\Auto404\Service; | ||
|
||
use TYPO3\CMS\Core\TypoScript\TemplateService; | ||
use TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController; | ||
use TYPO3\CMS\Frontend\Page\PageRepository; | ||
|
||
abstract class FrontendControllerService | ||
{ | ||
|
||
/** | ||
* @return PageRepository | ||
*/ | ||
public static function getPageRepository(): PageRepository | ||
{ | ||
return self::getController()->sys_page; | ||
} | ||
|
||
/** | ||
* @return TemplateService | ||
*/ | ||
public static function getTemplateService(): TemplateService | ||
{ | ||
return self::getController()->tmpl; | ||
} | ||
|
||
/** | ||
* @return TypoScriptFrontendController | ||
*/ | ||
public static function getController(): TypoScriptFrontendController | ||
{ | ||
return $GLOBALS['TSFE']; | ||
} | ||
|
||
|
||
} |
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
'author' => 'René Fritz', | ||
'author_email' => '[email protected]', | ||
'author_company' => 'Colorcube', | ||
'version' => '1.1.0', | ||
'version' => '1.1.1', | ||
'state' => 'stable', | ||
'constraints' => [ | ||
'depends' => [ | ||
|