Skip to content

Commit 61bcc4f

Browse files
authored
Merge pull request #29 from BobMali/main
closes #28
2 parents 1a7d311 + 17b92ab commit 61bcc4f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.ddev/commands/web/install

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ composer req --dev --no-progress -n -W -d /var/www/html/ \
2121

2222
cd /var/www/html/
2323

24-
mysql -udb -pdb -hdb -e "DROP DATABASE IF EXISTS test; CREATE DATABASE test;"
24+
mysql \
25+
--host=db \
26+
--user=db \
27+
--password=db \
28+
--execute="DROP DATABASE IF EXISTS test; CREATE DATABASE test; GRANT ALL PRIVILEGES ON test.* TO 'db'@'%'; FLUSH PRIVILEGES;"
2529

2630
vendor/bin/typo3 install:setup --database-user-name=db --database-user-password=db --database-host-name=db --database-name=test --use-existing-database --force
2731
vendor/bin/typo3 configuration:set 'BE/debug' 1
@@ -33,6 +37,7 @@ vendor/bin/typo3 configuration:set 'MAIL/transport' 'smtp'
3337
vendor/bin/typo3 configuration:set 'MAIL/transport_smtp_server' 'localhost:1025'
3438
vendor/bin/typo3 configuration:set 'GFX/processor' 'ImageMagick'
3539
vendor/bin/typo3 configuration:set 'GFX/processor_path' '/usr/bin/'
40+
vendor/bin/typo3 backend:createadmin admin admin123
3641

3742
sed -i -e "s/base: ht\//base: \//g" /var/www/html/config/sites/main/config.yaml
3843
sed -i -e 's/base: \/en\//base: \//g' /var/www/html/config/sites/main/config.yaml

Classes/Utility/Settings.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ class Settings extends AbstractEncryptionUtility
3232
*/
3333
public static function renderConfigurationArray(array $settings, $makeSettingsRenderable = false, ServerRequestInterface $request = null)
3434
{
35+
// @todo: this should be adjusted to use currentContentObject attribute from server request with v13
3536
/** @var ContentObjectRenderer|null $contentObject */
36-
$contentObject = ($request ?? $GLOBALS['TYPO3_REQUEST'])?->getAttribute('currentContentObject');
37+
$contentObject = self::getConfigurationManagerInterface()->getContentObject();
3738
if ($contentObject === null) {
3839
// This is a workaround until custom validators contain the current request to pass on to the current method
3940
return $makeSettingsRenderable ? self::makeConfigurationArrayRenderable($settings) : $settings;

0 commit comments

Comments
 (0)