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
<?php | |
$host = getenv('SERVER_NAME'); | |
$patternDev = '/^dev\./'; | |
$patternProduction = '/^www\./'; | |
if (preg_match($patternDev, $host)) { | |
putenv('TYPO3_CONTEXT=Development'); | |
} | |
if (preg_match($patternProduction, $host)) { | |
putenv('TYPO3_CONTEXT=Production'); |
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
<?php | |
namespace HenrikZiegenhain\MyExt\ViewHelpers; | |
/*************************************************************** | |
* Copyright notice | |
* | |
* (c) 2018 Henrik Ziegenhain <[email protected]> | |
* | |
* All rights reserved | |
* |
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
<?php | |
namespace HenrikZiegenhain\MyExt\DataProcessor; | |
/*************************************************************** | |
* Copyright notice | |
* | |
* (c) 2018 Henrik Ziegenhain <[email protected]> | |
* All rights reserved | |
* | |
* This script is part of the TYPO3 project. The TYPO3 project is |
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
<?php | |
namespace HenrikZiegenhain\MyExt\Domain\Validator; | |
/*************************************************************** | |
* Copyright notice | |
* | |
* (c) 2018 Henrik Ziegenhain <[email protected]> | |
* | |
* All rights reserved | |
* |
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
#!/bin/bash | |
# This script dumps all neccessary tables for LOCAL Development | |
# Be aware, that it excludes all userdata, caches and environment | |
# specific tables! | |
PASSWORD= | |
HOST= | |
USER= | |
DATABASE= |
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
<?php | |
namespace Vendor\Extension\Hooks; | |
use TYPO3\CMS\Backend\Utility\BackendUtility; | |
use TYPO3\CMS\Core\Cache\CacheManager; | |
use TYPO3\CMS\Core\Cache\Exception\NoSuchCacheGroupException; | |
use TYPO3\CMS\Core\Database\ReferenceIndex; | |
use TYPO3\CMS\Core\SingletonInterface; | |
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; |
OlderNewer