Skip to content

Commit 38f6922

Browse files
committed
Merge tag '2.1.0' into master
This is a maintenance release. Reveled to #28
2 parents 30526a1 + 9d42484 commit 38f6922

File tree

60 files changed

+3098
-845
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+3098
-845
lines changed

.check-author.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
exclude:
2-
- contao/languages
3-
- /^contao\/languages/
4-
51
ignore:
62
- 'Mini Model <minimodel@metamodel.me>'
3+
4+
exclude:
5+
- /^src\/Resources\/contao\/languages/

.travis.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,42 @@ php:
1111
- "7.3"
1212
- "7.2"
1313
- "7.1"
14-
- "7.0"
15-
- "5.6"
1614

1715
env:
18-
- CONTAO_VERSION=~3.5.5
16+
- CONTAO_VERSION=~4.7.0
17+
- CONTAO_VERSION=~4.6.0
18+
- CONTAO_VERSION=~4.5.0
19+
- CONTAO_VERSION=~4.4.0
20+
21+
# Exclude impossible Contao Version combinations.
22+
matrix:
23+
exclude:
24+
fast_finish: true
25+
allow_failures:
26+
- env: CONTAO_VERSION=~4.7.0
27+
- env: CONTAO_VERSION=~4.6.0
28+
- env: CONTAO_VERSION=~4.5.0
1929

2030
before_script:
2131
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
2232
- travis_retry composer self-update && composer --version
23-
- travis_retry composer require contao/core $CONTAO_VERSION --no-update
33+
- travis_retry composer require contao/core-bundle $CONTAO_VERSION --no-update
2434
- >
2535
if [ "x${TRAVIS_TAG}" != "x" ]; then
2636
export COMPOSER_ROOT_VERSION=${TRAVIS_TAG}
2737
else
28-
export COMPOSER_ROOT_VERSION=$([[ ${TRAVIS_BRANCH} =~ hotfix/([0-9.]*(-(alpha|beta|rc)[0-9]+)?) ]] \
29-
&& echo ${BASH_REMATCH[1]} \
38+
export COMPOSER_ROOT_VERSION=$([[ ${TRAVIS_BRANCH} =~ (hotfix|release)/([0-9.]*(-(alpha|beta|rc)[0-9]+)?) ]] \
39+
&& echo ${BASH_REMATCH[2]} \
3040
|| echo dev-${TRAVIS_BRANCH})
3141
fi
3242
- echo "Using root version ${COMPOSER_ROOT_VERSION}"
33-
- travis_retry composer update --prefer-dist --no-interaction
43+
- >
44+
echo "PHP version: ${TRAVIS_PHP_VERSION}";
45+
if [ "x${TRAVIS_PHP_VERSION}" == "xnightly" ]; then
46+
travis_retry composer update --ignore-platform-reqs --prefer-dist --no-interaction --no-suggest
47+
else
48+
travis_retry composer update --prefer-dist --no-interaction --no-suggest
49+
fi
3450
3551
script: ant -keep-going
3652

build.default.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77

88
phpcs.standard=${basedir}/vendor/phpcq/coding-standard/phpcs/PhpCodeQuality/ruleset.xml
99
phpmd.ruleset=${basedir}/vendor/phpcq/coding-standard/phpmd/ruleset.xml
10+
phpcs.excluded=src/Resources/contao/languages

composer.json

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"file",
99
"translatable"
1010
],
11-
"type": "contao-module",
11+
"type": "contao-bundle",
1212
"homepage": "http://now.metamodel.me/",
1313
"license": "LGPL-3.0-or-later",
1414
"authors": [
@@ -32,33 +32,38 @@
3232
"source": "https://github.com/MetaModels/attribute_translatedfile"
3333
},
3434
"require": {
35-
"php": "^5.6 || ^7.0",
36-
"contao-community-alliance/composer-plugin": "^2.4",
37-
"contao-community-alliance/dc-general": "^2.0.0",
38-
"contao/core": "^3.5.5",
39-
"metamodels/core": "^2.0"
35+
"php": "^7.1",
36+
"contao-community-alliance/dc-general": "^2.1.3",
37+
"contao/core-bundle": "^4.4.8",
38+
"metamodels/core": "^2.1.1",
39+
"metamodels/attribute_file": "^2.1.1",
40+
"symfony/dependency-injection": "^3.3 || ^4.0",
41+
"symfony/http-kernel": "^3.3 || ^4.0"
4042
},
4143
"require-dev": {
42-
"metamodels/base-unit-tests": "^1.0.4",
44+
"contao/manager-plugin": "^2.1",
45+
"menatwork/contao-multicolumnwizard-bundle": "^3.4",
4346
"phpcq/all-tasks": "^1.2"
4447
},
4548
"autoload": {
46-
"psr-0": {
47-
"MetaModels": "src/"
49+
"psr-4": {
50+
"MetaModels\\AttributeTranslatedFileBundle\\": "src"
51+
},
52+
"files": [
53+
"src/deprecated-autoload.php"
54+
]
55+
},
56+
"autoload-dev": {
57+
"psr-4": {
58+
"MetaModels\\AttributeTranslatedFileBundle\\Test\\": "tests"
4859
}
4960
},
5061
"extra": {
51-
"contao": {
52-
"symlinks": {
53-
"contao": "system/modules/metamodelsattribute_translatedfile"
54-
}
55-
},
62+
"contao-manager-plugin": "MetaModels\\AttributeTranslatedFileBundle\\ContaoManager\\Plugin",
5663
"branch-alias": {
57-
"dev-master": "2.0.x-dev",
58-
"dev-develop": "2.1.x-dev"
64+
"dev-master": "2.1.x-dev"
5965
}
6066
},
61-
"prefer-stable": true,
6267
"config": {
6368
"sort-packages": true
6469
}

contao/config/autoload.ini

Lines changed: 0 additions & 7 deletions
This file was deleted.

contao/config/event_listeners.php

Lines changed: 0 additions & 40 deletions
This file was deleted.

contao/dca/tl_metamodel_attribute.php

Lines changed: 0 additions & 115 deletions
This file was deleted.

contao/dca/tl_metamodel_rendersetting.php

Lines changed: 0 additions & 76 deletions
This file was deleted.

contao/html/.htaccess

Lines changed: 0 additions & 7 deletions
This file was deleted.

ctb.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"transifex": {
33
"project": "metamodels",
44
"prefix": "attribute_translatedfile-",
5-
"languages_cto": "contao/languages",
5+
"languages_cto": "src/Resources/contao/languages",
66
"languages_tx": ".tx",
77
"php-file-header": [
88
"This file is part of MetaModels/attribute_translatedfile.",

0 commit comments

Comments
 (0)