Skip to content

Commit

Permalink
Add compatibility with Contao 5
Browse files Browse the repository at this point in the history
  • Loading branch information
qzminski committed Aug 31, 2022
1 parent 667f396 commit 6a02ae3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 22 deletions.
19 changes: 0 additions & 19 deletions .php_cs.dist

This file was deleted.

14 changes: 11 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"require": {
"php": "^7.1 || ^8.0",
"ext-pdo": "*",
"contao/core-bundle": "^4.4",
"contao/core-bundle": "^4.13 || ^5.0",
"codefog/contao-haste": "^4.24",
"doctrine/dbal": "^2.12 || ^3.0"
},
"require-dev": {
"contao/manager-plugin": "^2.0",
"contao/php-cs-fixer": "^2.2",
"contao/easy-coding-standard": "^5.3",
"phpunit/phpunit": "^7.0 || ^9.3",
"contao/test-case": "^2.0",
"contao/test-case": "^4.13",
"php-coveralls/php-coveralls": "^2.2"
},
"conflict": {
Expand All @@ -42,5 +42,13 @@
},
"extra": {
"contao-manager-plugin": "Codefog\\TagsBundle\\ContaoManager\\Plugin"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"cs-fixer": "vendor/bin/ecs check src tests --fix --ansi"
}
}
16 changes: 16 additions & 0 deletions ecs.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

use PhpCsFixer\Fixer\Comment\HeaderCommentFixer;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\EasyCodingStandard\ValueObject\Option;

return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->import(__DIR__.'/tools/ecs/vendor/contao/easy-coding-standard/config/self.php');

$parameters = $containerConfigurator->parameters();
$parameters->set(Option::SKIP, [
HeaderCommentFixer::class => null,
]);
};

0 comments on commit 6a02ae3

Please sign in to comment.