Skip to content

Commit

Permalink
Ensure the correct dependencies are set on all services used
Browse files Browse the repository at this point in the history
  • Loading branch information
Toflar committed May 2, 2024
1 parent 9921b21 commit 1203058
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
21 changes: 18 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,30 @@
"require": {
"php": "^8.1",
"composer-plugin-api": "^2.0",
"codefog/contao-haste": "^5.0",
"contao/core-bundle": "^4.13.17 || ^5.1.1",
"doctrine/dbal": "^3.4",
"doctrine/orm": "^2.19",
"knplabs/knp-menu": "^3.1",
"psr/container": "^1.0 || ^2.0",
"ramsey/collection": "^1.2",
"soundasleep/html2text": "^2.0",
"symfony/asset": "^5.4 || ^6.0 || ^7.0",
"symfony/expression-language": "^5.4 || ^6.0 || ^7.0",
"symfony/config": "^5.4 || ^6.0 || ^7.0",
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0",
"symfony/event-dispatcher": "^5.4 || ^6.0 || ^7.0",
"symfony/event-dispatcher-contracts": "^2.0 || ^3.0",
"symfony/filesystem": "^5.4 || ^6.0 || ^7.0",
"symfony/http-foundation": "^5.4 || ^6.0 || ^7.0",
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0",
"symfony/mailer": "^5.4 || ^6.0 || ^7.0",
"symfony/mime": "^5.4 || ^6.0 || ^7.0",
"symfony/security-core": "^5.4 || ^6.0 || ^7.0",
"symfony/service-contracts": "^1.1 || ^3.0",
"symfony/translation-contracts": "^2.0 || ^3.0",
"symfony/uid": "^5.4 || ^6.0 || ^7.0",
"terminal42/dcawizard": "^3.0"
"terminal42/dcawizard": "^3.0",
"twig/twig": "^3.8"
},
"require-dev": {
"contao/manager-plugin": "^2.0",
Expand Down Expand Up @@ -70,7 +84,8 @@
"contao-community-alliance/composer-plugin": true,
"php-http/discovery": false,
"terminal42/contao-build-tools": true
}
},
"sort-packages": true
},
"prefer-stable": true
}
14 changes: 14 additions & 0 deletions depcheck.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

declare(strict_types=1);

use ShipMonk\ComposerDependencyAnalyser\Config\Configuration;
use ShipMonk\ComposerDependencyAnalyser\Config\ErrorType;

return (new Configuration())
->ignoreUnknownClasses([
'Contao\ModulePassword', // This class exists in Contao 4.13 but not in 5.3
])
->ignoreErrorsOnPackage('contao/newsletter-bundle', [ErrorType::DEV_DEPENDENCY_IN_PROD]) // This is an optional integration
->ignoreErrorsOnPackage('terminal42/dcawizard', [ErrorType::UNUSED_DEPENDENCY]) // This is a widget used in the back end but not inside code
;

0 comments on commit 1203058

Please sign in to comment.