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
production:merge: | |
stage: test | |
allow_failure: false | |
only: | |
refs: | |
- merge_requests | |
script: | |
- test `grep -r -e "DebuggerUtility::var_dump" -e DatabaseQueryDebugger -e "<f:debug" -e "debug(" packages | grep -v -e .js | wc -l` -eq 0 |
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 | |
// place as .ddev/scripts/newContentElement.php | |
/** | |
* Markus Hofmann | |
* 07.07.21 15:39 | |
* typo3-default-sitepackage | |
*/ | |
$classLoader = require __DIR__.'/../../vendor/autoload.php'; |
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
Search: | |
type: Plugin | |
namespace: tx_solr | |
routePath: '/{q}' | |
limitToPages: [1571] | |
defaults: | |
q: '' | |
requirements: | |
q: '^.*$' |
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 | |
declare(strict_types=1); | |
namespace Vendor\ExtensionName\Routing\Aspect; | |
use TYPO3\CMS\Core\DataHandling\SlugHelper; | |
use TYPO3\CMS\Core\Routing\Aspect\PersistedPatternMapper; | |
use TYPO3\CMS\Core\Site\SiteLanguageAwareInterface; | |
use TYPO3\CMS\Core\Site\SiteLanguageAwareTrait; |
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 | |
declare(strict_types=1); | |
namespace VENDOR\Extension\Routing\Enhancer; | |
use TYPO3\CMS\Core\Routing\Enhancer\PageTypeDecorator; | |
use TYPO3\CMS\Core\Routing\RouteCollection; |
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
<!-- add under settings -> Editor -> File and Code Templates --> | |
<!-- put into file name: #if ($TARGET!="")$TARGET.#end${NAME} --> | |
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> | |
<xliff version="1.0"> | |
<file source-language="en" target-language="$TARGET" datatype="plaintext" original="messages" date="${YEAR}-${MONTH}-${DAY}T${HOUR}:${MINUTE}:${SECOND}Z"> | |
<header> | |
<generator>PhpStorm</generator> | |
</header> | |
<body> | |
</body> |
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
//include this snippet under Settings -> Editor -> Live Templates | |
// Abbreviation tca | |
'$TITLE$' => [ | |
'label' => 'LLL:EXT:$TEMPLATE$/Resources/Private/Language/locallang.xlf:$pretitle$.$TITLE$', | |
'config' => [ | |
'type' => '$TYPE$'$END$ | |
] | |
], |
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 | |
$connectionPool = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Database\ConnectionPool::class); | |
$productConnection = $connectionPool->getConnectionForTable('tx_myext_domain_model_mytable'); | |
$productDB = $productConnection->createQueryBuilder(); | |
$prepSelect = $productDB->select('*') | |
->from('tx_myext_domain_model_mytable') | |
->where( |