Skip to content

Commit 6135129

Browse files
committed
Merge tag '2.1.0' into master
This is a maintenance release. Reveled to #14
2 parents d213f1a + c6c4758 commit 6135129

Some content is hidden

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

42 files changed

+523
-145
lines changed

.check-author.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ignore:
22
- 'Mini Model <minimodel@metamodel.me>'
33

44
exclude:
5-
- /^contao\/languages/
5+
- /^src\/Resources\/contao\/languages/
66

77
mapping:
88
'Andreas Isaak <info@andreas-isaak.de>': 'Andreas Isaak <andy.jared@googlemail.com>'

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ nbproject/
1515
vendor/
1616

1717
# build
18-
build/
18+
build/
19+
composer.lock

.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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
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+
11+
phpcs.excluded=src/Resources/contao/languages

composer.json

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"filter",
88
"checkbox"
99
],
10-
"type": "contao-module",
10+
"type": "contao-bundle",
1111
"homepage": "http://now.metamodel.me/",
1212
"license": "LGPL-3.0-or-later",
1313
"authors": [
@@ -31,29 +31,35 @@
3131
"source": "https://github.com/MetaModels/filter_checkbox"
3232
},
3333
"require": {
34-
"php": "^5.6 || ^7.0",
35-
"contao-community-alliance/composer-plugin": "^2.4",
36-
"contao-community-alliance/dc-general": "^2.0.0",
37-
"contao/core": "^3.5.5",
38-
"metamodels/core": "^2.0"
34+
"php": "^7.1",
35+
"contao-community-alliance/dc-general": "^2.1.0",
36+
"contao/core-bundle": "^4.4.8",
37+
"metamodels/core": "^2.1",
38+
"symfony/dependency-injection": "^3.3 || ^4.0",
39+
"symfony/http-kernel": "^3.3 || ^4.0"
3940
},
4041
"require-dev": {
42+
"contao/manager-plugin": "^2.1",
43+
"menatwork/contao-multicolumnwizard-bundle": "^3.4",
4144
"phpcq/all-tasks": "^1.2"
4245
},
4346
"autoload": {
44-
"psr-0": {
45-
"MetaModels\\": "src"
47+
"psr-4": {
48+
"MetaModels\\FilterCheckboxBundle\\": "src"
49+
},
50+
"files": [
51+
"src/deprecated-autoload.php"
52+
]
53+
},
54+
"autoload-dev": {
55+
"psr-4": {
56+
"MetaModels\\FilterCheckboxBundle\\Test\\": "tests"
4657
}
4758
},
4859
"extra": {
49-
"contao": {
50-
"sources": {
51-
"contao": "system/modules/metamodelsfilter_checkbox"
52-
}
53-
},
60+
"contao-manager-plugin": "MetaModels\\FilterCheckboxBundle\\ContaoManager\\Plugin",
5461
"branch-alias": {
55-
"dev-master": "2.0.x-dev",
56-
"dev-develop": "2.1.x-dev"
62+
"dev-master": "2.1.x-dev"
5763
}
5864
},
5965
"config": {

contao/config/.htaccess

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

contao/config/autoload.ini

Lines changed: 0 additions & 7 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": "filter_checkbox-",
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/filter_checkbox.",

src/ContaoManager/Plugin.php

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?php
2+
3+
/**
4+
* This file is part of MetaModels/filter_checkbox.
5+
*
6+
* (c) 2012-2019 The MetaModels team.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*
11+
* This project is provided in good faith and hope to be usable by anyone.
12+
*
13+
* @package MetaModels/filter_checkbox
14+
* @author Richard Henkenjohann <richardhenkenjohann@googlemail.com>
15+
* @copyright 2012-2019 The MetaModels team.
16+
* @license https://github.com/MetaModels/filter_checkbox/blob/master/LICENSE LGPL-3.0-or-later
17+
* @filesource
18+
*/
19+
20+
namespace MetaModels\FilterCheckboxBundle\ContaoManager;
21+
22+
use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
23+
use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
24+
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
25+
use MetaModels\CoreBundle\MetaModelsCoreBundle;
26+
use MetaModels\FilterCheckboxBundle\MetaModelsFilterCheckboxBundle;
27+
28+
/**
29+
* Contao Manager plugin.
30+
*/
31+
class Plugin implements BundlePluginInterface
32+
{
33+
/**
34+
* {@inheritdoc}
35+
*/
36+
public function getBundles(ParserInterface $parser)
37+
{
38+
return [
39+
BundleConfig::create(MetaModelsFilterCheckboxBundle::class)
40+
->setLoadAfter(
41+
[
42+
MetaModelsCoreBundle::class
43+
]
44+
)
45+
->setReplace(['metamodelsfilter_checkbox'])
46+
];
47+
}
48+
}

0 commit comments

Comments
 (0)