Commit Graph

12614 Commits

Author SHA1 Message Date
14a0c2b4fd Refactor WidgetRenderingTwig: remove TwigFunction usage, replace with attributes for declaring functions. 2025-12-22 15:29:05 +01:00
22c3952c00 misc phpstan issues 2025-12-22 15:28:54 +01:00
c94cb741c6 Refactor ChillTwigRoutingHelper to extend AbstractExtension and register it as a Twig extension 2025-12-22 15:28:31 +01:00
d714a61a6d Refactor service definitions in menu.yaml to use _defaults for autowiring and autoconfiguration, and update SectionMenuBuilder constructor with property promotion. 2025-12-22 15:28:30 +01:00
a199f5983e Refactor SingleTaskType: replace UserPickerType with PickUserDynamicType and CenterResolverDispatcherInterface with CenterResolverManagerInterface. 2025-12-22 15:28:30 +01:00
1b5c3dfc33 Improve type declarations and add PHPDoc for ThirdPartySearch and ThirdPartyRepository 2025-12-22 14:25:55 +01:00
ed3fd429a4 Refactor findByDocumentFilename to use findOneByPrefix and implement findOneByPrefix in StoredObjectRepository 2025-12-22 14:21:13 +01:00
ef89f37ec3 Set MAILER_DSN to null://null in GitLab CI environment 2025-12-22 13:57:01 +01:00
f3486e851a fix cs 2025-12-22 13:42:45 +01:00
741f655cfc Refactor Twig extensions to use attributes for declaring functions and filters, remove AbstractExtension inheritance, and clean up related service definitions. 2025-12-19 12:23:20 +01:00
0d42ed9262 Refactor ChillTwigRoutingHelper to extend AbstractExtension and register Twig filters properly 2025-12-19 11:56:44 +01:00
4042cdd59c Update exposed ports in compose.override.yaml for database, redis, and rabbitmq 2025-12-19 11:56:36 +01:00
5b71d1b522 Update dependencies: lock champs-libres/wopi-bundle and champs-libres/wopi-lib to 1.0.0, add symfony/var-exporter 2025-12-19 11:56:17 +01:00
8f20570f3b Improve return types for methods 2025-11-04 09:56:04 +01:00
a113360ccf Update rector config for Symfony container and code/dead code levels
- Added Symfony container XML and PHP paths to the configuration.
- Set levels for dead code, code quality, type coverage, docblocks, and coding style.
2025-11-04 09:55:29 +01:00
6999919d9f rector rules: apply rule with level 0 2025-11-03 18:16:07 +01:00
2ca88d786c fix constructor injection 2025-11-03 18:06:07 +01:00
662e962549 fix CS 2025-11-03 16:22:33 +01:00
7654db4e39 apply rector ruleset "symfony constructor injection" 2025-11-03 16:22:02 +01:00
adab2ffe63 Refactor ChillTwigRoutingHelper to extend AbstractExtension and improve Twig functionality
- Updated `ChillTwigRoutingHelper` to extend `AbstractExtension` for consistency with Twig best practices.
- Moved `chill_return_path_label` from a Twig attribute to a filter within `getFilters`.
- Removed unnecessary dependency on `RequestStack` in `services/templating.yaml`.
2025-11-03 15:41:54 +01:00
590f7c1055 Refactor constructor in CountNotificationTask using promoted properties
- Simplified constructor by utilizing property promotion for dependencies in PHP 8.
2025-11-03 14:11:15 +01:00
843ae0a36a fix loading of some twig extensions in DI 2025-11-03 14:08:25 +01:00
9554d21f82 rector rules for symfony set list 7.x 2025-11-03 13:59:46 +01:00
58c1e7bfaa rector rules for symfony set list 6.0 2025-11-03 13:50:15 +01:00
9093dceea4 rector rules for symfony set list 6.4 2025-11-03 13:44:31 +01:00
cdc489f01e Apply new rector rules regarding to PHP version to 8.4 2025-11-03 13:36:51 +01:00
d6f5ef4bb1 Extend Rector configuration to support PHP 8.0 to 8.4 features
- Added `SetList::PHP_80` to `SetList::PHP_84` for advanced PHP version support.
- Enhanced compatibility by incorporating broader PHP syntax improvements.
2025-11-03 13:36:23 +01:00
1c17e218a5 Upgrade to PHP 8.4 and update dependencies
- Updated `.gitlab-ci.yml` to use `chill/base-image:8.4-edge` across all stages.
- Updated `composer.json` to require PHP `^8.4` and upgraded `lexik/jwt-authentication-bundle` to `^3.1.1`.
2025-11-03 13:23:40 +01:00
7fd219d517 Refactor JWTOnDavUrlAuthenticator to extend JWTAuthenticator and update dependencies
- Replaced `JWTTokenAuthenticator` with `JWTAuthenticator` for compatibility with updated security components.
- Updated constructor to use `UserProviderInterface` instead of `TokenStorageInterface`.
- Enhanced `getTokenExtractor` with correct return type declaration.
2025-11-03 13:12:38 +01:00
f8571f22a6 Update dependencies: add phpstan/phpstan-doctrine to composer.json
- Introduced `phpstan/phpstan-doctrine` to enhance PHPStan analysis for Doctrine integrations.
2025-10-30 01:33:33 +01:00
fabbb0c091 fix phpstan 2025-10-30 01:33:28 +01:00
14d65fa931 apply rector rules 2025-10-30 01:20:52 +01:00
7a790d43ec Refactor Rector configuration for improved readability and simplicity
- Consolidated configurations using `RectorConfig::configure()` method.
- Simplified paths and enabled Composer-based configuration for Twig, Doctrine, and Symfony.
2025-10-30 01:09:13 +01:00
0d536cc8ce Update dependencies in composer.json and enhance PHPStan configuration
- Upgraded multiple dependencies including `knplabs/knp-time-bundle`, `symfony/translation`, `symfony/twig-bundle`, and others to newer versions.
- Added `symfony/containerXmlPath` configuration in `phpstan.dist.neon` to improve PHPStan analysis.
- Introduced `phpstan/phpstan-symfony` to better handle Symfony-specific features.
2025-10-30 00:57:07 +01:00
5634d72d6f fix cs 2025-10-30 00:42:35 +01:00
d74179f1e1 Refactor CSV creation and reading to use Reader::from and Writer::from.
- Replaced deprecated `createFromPath` and `createFromStream` methods with `from`.
- Updated all relevant commands, services, controllers, and exporters.
2025-10-30 00:22:22 +01:00
426d0dc193 Use query.all() instead of query.get() 2025-10-22 10:21:34 +02:00
b132956ddc phpstan boolean corrections 2025-10-09 13:57:30 +02:00
03fa79c93b Change use statement for Security dependency 2025-10-09 11:20:18 +02:00
373caeb3e3 Remove unnecessary artifact keys (cache vendor) for phpstan, rector, and phpunit. Use the vendor that was produced and saved in the build step. Dependency on build step added. 2025-10-09 10:41:11 +02:00
1152be4d45 Merge branch 'master' into migrate_to_sf72
# Conflicts:
#	src/Bundle/ChillMainBundle/Controller/UserProfileController.php
#	src/Bundle/ChillMainBundle/Entity/User.php
#	src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkDuplicateController.php
#	src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkEvaluationDocumentDuplicateController.php
#	src/Bundle/ChillPersonBundle/Form/Type/PickLinkedAccompanyingPeriodWorkType.php
2025-10-06 12:01:58 +02:00
ebd10ca522 Merge branch 'fix/history-of-versions-stored-object' into 'master'
Fix the rendering of storedObject's history

See merge request Chill-Projet/chill-bundles!893
2025-10-03 20:47:06 +00:00
d3a31be412 Fix re-ordering of StoredObjectVersion in the list of versions
As some intermediate versions are remove, this may lead to situation where the indexes are not continous. In that case, the array is not a list, and is rendered as an array with numeric indexes, instead of a list of elements. The HistoryListItem component fails to render.

- Ensured proper handling of removed versions by using `array_values` to reindex items.
- Added test case to validate the result after removing a version.
- Asserted the results are a proper list in the API response.
2025-10-03 22:40:59 +02:00
d159a82f88 Update import paths in HistoryButtonListItem.vue to use aliases
- Changed types import to use `ChillDocStoreAssets/types`.
- Updated `ISOToDatetime` import to use `ChillMainAssets/chill/js/date`.
2025-10-03 22:20:51 +02:00
c2d9c73fd4 Release v4.5.1 v4.5.1 2025-10-03 14:11:41 +02:00
0d6d15fcf7 Merge branch 'fix/conversion-exception' into 'master'
Introduce `ConversionWithSameMimeTypeException` for improved error handling in document conversion.

See merge request Chill-Projet/chill-bundles!892
2025-10-03 12:10:24 +00:00
f9ad96c78b Introduce ConversionWithSameMimeTypeException for improved error handling in document conversion.
- Added the `ConversionWithSameMimeTypeException` to handle cases where document conversion is requested for the same MIME type.
- Updated `StoredObjectToPdfConverter` to throw the new exception when encountering such cases.
- Enhanced error logging in `PostSendExternalMessageHandler` to capture these specific conversion errors.
2025-10-03 13:57:06 +02:00
fcc9529a20 Add missing javascript dependency in package.json 2025-10-03 13:56:20 +02:00
955cb817c4 Release v4.5.0 v4.5.0 2025-10-03 12:09:17 +02:00
823f9546b9 Merge branch '421-signature-fixes' into 'master'
Signature fixes

Closes #421

See merge request Chill-Projet/chill-bundles!887
2025-10-03 09:49:34 +00:00