Skip to content

Commit 9ffcd2c

Browse files
committed
[BUGFIX] Add Preplacement for config.persistence.classes
Resolves: #85
1 parent 8cabdb9 commit 9ffcd2c

File tree

4 files changed

+18
-95
lines changed

4 files changed

+18
-95
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,17 @@ lint:php81:
100100
- php -r "if (hash_file('SHA384', 'composer-setup.php') === trim(file_get_contents('installer.sig'))) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
101101
- php composer-setup.php --no-ansi --install-dir=/usr/bin --filename=composer
102102
- php -r "unlink('composer-setup.php'); unlink('installer.sig');"
103+
- composer config --no-plugins allow-plugins.typo3/cms-composer-installers true
104+
- composer config --no-plugins allow-plugins.typo3/class-alias-loader true
103105
- composer require typo3/cms-core="${TYPO3_VERSION}"
104-
- composer require typo3/cms-install="${TYPO3_VERSION}"
105106
script:
106107
- >
107108
if [[ "$COVERAGE" == "0" ]]; then
108109
.build/bin/phpunit -c Build/UnitTests.xml
109110
fi
110111
- >
111112
if [[ "$COVERAGE" == "1" ]]; then
113+
composer require typo3/cms-install="${TYPO3_VERSION}"
112114
XDEBUG_MODE=coverage .build/bin/phpunit --coverage-clover=phpunit.coverage.xml --log-junit=phpunit.report.xml -c Build/UnitTests.xml
113115
fi
114116
- typo3DatabaseDriver=pdo_sqlite .build/bin/phpunit -c Build/FunctionalTests.xml
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
use Extcode\Contacts\Domain\Model\Category;
5+
use Extcode\Contacts\Domain\Model\TtContent;
6+
7+
return [
8+
Category::class => [
9+
'tableName' => 'sys_category',
10+
],
11+
TtContent::class => [
12+
'tableName' => 'tt_content',
13+
],
14+
];

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'modify_tables' => '',
1818
'clearCacheOnLoad' => 0,
1919
'lockType' => '',
20-
'version' => '4.0.1',
20+
'version' => '4.0.2',
2121
'constraints' => [
2222
'depends' => [
2323
'typo3' => '10.4.0-11.5.99',

ext_typoscript_setup.typoscript

Lines changed: 0 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -13,96 +13,3 @@ module.tx_contacts {
1313
}
1414
}
1515
}
16-
17-
plugin.tx_contacts {
18-
persistence {
19-
classes {
20-
Extcode\Contacts\Domain\Model\Category {
21-
mapping {
22-
tableName = sys_category
23-
}
24-
}
25-
}
26-
}
27-
}
28-
29-
config.tx_extbase {
30-
persistence {
31-
classes {
32-
Extcode\Contacts\Domain\Model\TtContent {
33-
mapping {
34-
tableName = tt_content
35-
columns {
36-
crdate.mapOnProperty = crdate
37-
tstamp.mapOnProperty = tstamp
38-
CType.mapOnProperty = contentType
39-
header.mapOnProperty = header
40-
header_position.mapOnProperty = headerPosition
41-
bodytext.mapOnProperty = bodytext
42-
image.mapOnProperty = image
43-
imagewidth.mapOnProperty = imagewidth
44-
imageorient.mapOnProperty = imageorient
45-
imagecaption.mapOnProperty = imagecaption
46-
imagecols.mapOnProperty = imagecols
47-
imageborder.mapOnProperty = imageborder
48-
media.mapOnProperty = media
49-
layout.mapOnProperty = layout
50-
cols.mapOnProperty = cols
51-
records.mapOnProperty = records
52-
pages.mapOnProperty = pages
53-
starttime.mapOnProperty = starttime
54-
endtime.mapOnProperty = endtime
55-
colPos.mapOnProperty = colPos
56-
subheader.mapOnProperty = subheader
57-
spaceBefore.mapOnProperty = spaceBefore
58-
spaceAfter.mapOnProperty = spaceAfter
59-
fe_group.mapOnProperty = feGroup
60-
header_link.mapOnProperty = headerLink
61-
imagecaption_position.mapOnProperty = imagecaptionPosition
62-
image_link.mapOnProperty = imageLink
63-
image_zoom.mapOnProperty = imageZoom
64-
image_noRows.mapOnProperty = imageNoRows
65-
image_effects.mapOnProperty = imageEffects
66-
image_compression.mapOnProperty = imageCompression
67-
altText.mapOnProperty = altText
68-
titleText.mapOnProperty = titleText
69-
longdescURL.mapOnProperty = longdescUrl
70-
header_layout.mapOnProperty = headerLayout
71-
menu_type.mapOnProperty = menuType
72-
list_type.mapOnProperty = listType
73-
table_border.mapOnProperty = tableBorder
74-
table_cellspacing.mapOnProperty = tableCellspacing
75-
table_cellpadding.mapOnProperty = tableCellpadding
76-
table_bgColor.mapOnProperty = tableBgColor
77-
select_key.mapOnProperty = selectKey
78-
sectionIndex.mapOnProperty = sectionIndex
79-
linkToTop.mapOnProperty = linkToTop
80-
file_collections.mapOnProperty = fileCollections
81-
filelink_size.mapOnProperty = filelinkSize
82-
filelink_sorting.mapOnProperty = filelinkSorting
83-
target.mapOnProperty = target
84-
section_frame.mapOnProperty = sectionFrame
85-
date.mapOnProperty = date
86-
multimedia.mapOnProperty = multimedia
87-
image_frames.mapOnProperty = imageFrames
88-
recursive.mapOnProperty = recursive
89-
imageheight.mapOnProperty = imageheight
90-
rte_enabled.mapOnProperty = rteEnabled
91-
sys_language_uid.mapOnProperty = sysLanguageUid
92-
tx_impexp_origuid.mapOnProperty = txImpexpOriguid
93-
pi_flexform.mapOnProperty = piFlexform
94-
accessibility_title.mapOnProperty = accessibilityTitle
95-
accessibility_bypass.mapOnProperty = accessibilityBypass
96-
accessibility_bypass_text.mapOnProperty = accessibilityBypassText
97-
selected_categories.mapOnProperty = selectedCategories
98-
category_field.mapOnProperty = categoryField
99-
tx_gridelements_backend_layout.mapOnProperty = txGridelementsBackendLayout
100-
tx_gridelements_children.mapOnProperty = txGridelementsChildren
101-
tx_gridelements_container.mapOnProperty = txGridelementsContainer
102-
tx_gridelements_columns.mapOnProperty = txGridelementsColumns
103-
}
104-
}
105-
}
106-
}
107-
}
108-
}

0 commit comments

Comments
 (0)