composer config platform.php 7.0.30 # Fake PHP 7.0.30
composer update --with-all-dependencies symfony/* # Update symfony to the latest 7.0.30 compatible version
composer config --unset platform.php # Remove the faked PHP (or remove the entire config section if its empty)
composer update --lock # Rewrite the composer.lock to remove the platform-override and recalculate the hash
This file contains hidden or 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\Aspect; | |
use TYPO3\CMS\Core\Database\ConnectionPool; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
class FileCategoryAspect | |
{ | |
/** | |
* Add categories to file metadata |
This file contains hidden or 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
SNIPE_IT_VERSION=4.7.8 | |
VHOST=assets.domain.tld | |
FRONTEND_NETWORK=frontend |
This file contains hidden or 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
cache: | |
key: "$CI_JOB_STAGE-$CI_COMMIT_REF_NAME" | |
paths: | |
- .cache/ | |
.dedicated-runner: | |
tags: | |
- docker | |
- linux |
This file contains hidden or 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
compare:staging:live: | |
image: | |
name: bbcnews/wraith | |
entrypoint: [""] | |
tags: | |
- docker | |
- linux | |
stage: compare | |
only: | |
- develop |
This file contains hidden or 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
image: an-image-with-docker-and-docker-compose | |
variables: | |
DOCKER_TLS_VERIFY: "1" | |
DOCKER_CERT_PATH: ".docker" | |
before_script: | |
- mkdir -p $DOCKER_CERT_PATH | |
- echo "$DOCKER_CA" > $DOCKER_CERT_PATH/ca.pem | |
- echo "$DOCKER_CERT" > $DOCKER_CERT_PATH/cert.pem |
This file contains hidden or 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\DataProcessing; | |
use TYPO3\CMS\Core\Utility\ArrayUtility; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer; | |
use TYPO3\CMS\Frontend\ContentObject\DataProcessorInterface; | |
/** | |
* This data processor can be used for processing data for the content elements which have flexform contents in one field |
This file contains hidden or 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 | |
// The mysql socket is not accessable from the chrooted env. You have to allow TCP connection for the user from 127.0.0.1 | |
// See https://www.metanet.ch/support/713#weitere-hinweise | |
if (PHP_SAPI === 'cli') { | |
$GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['host'] = '127.0.0.1'; | |
$GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['port'] = 3306; | |
} |
This file contains hidden or 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
cache: | |
# Use a cache for every branch and every stage | |
key: "$CI_COMMIT_REF_NAME/$CI_JOB_STAGE" | |
# Cache the path .cache within the project workspace | |
paths: | |
- .cache/ | |
variables: | |
# Tell composer to save and load it's cache within the .cache folder | |
COMPOSER_CACHE_DIR: "$CI_PROJECT_DIR/.cache/composer" |
- Copy your extension to
[web/]typo3conf/ext/
of your composer mode TYPO3 (or kickstart one with extension_builder). - Add autoload entry to your root composer.json (that one which requires "typo3/cms")
"autoload": {
"psr-4": {
"T3easy\\MyExt\\": "web/typo3conf/ext/my_ext/Classes/"
}
}
- Run
composer dump-autoload -a
to update the autoloader.
NewerOlder