diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index 6349210..91dfba2 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Install PHP with extensions uses: shivammathur/setup-php@v2 with: @@ -23,7 +23,7 @@ jobs: coverage: none tools: composer:v2 - name: Install Composer dependencies (locked) - uses: ramsey/composer-install@v3 + uses: ramsey/composer-install@v4 - name: PHPStan run: vendor/bin/phpstan --no-progress --memory-limit=1G analyse --error-format=github @@ -32,7 +32,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Install PHP with extensions uses: shivammathur/setup-php@v2 with: @@ -40,7 +40,7 @@ jobs: coverage: none tools: composer:v2 - name: Install Composer dependencies (locked) - uses: ramsey/composer-install@v3 + uses: ramsey/composer-install@v4 - name: PHP-CS-Fixer run: vendor/bin/php-cs-fixer fix --diff --dry-run --show-progress=none @@ -49,7 +49,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Install PHP with extensions uses: shivammathur/setup-php@v2 with: @@ -57,7 +57,7 @@ jobs: coverage: none tools: composer:v2 - name: Install Composer dependencies (locked) - uses: ramsey/composer-install@v3 + uses: ramsey/composer-install@v4 - name: Rector run: vendor/bin/rector --no-progress-bar --dry-run @@ -66,7 +66,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Install PHP with extensions uses: shivammathur/setup-php@v2 with: @@ -74,6 +74,6 @@ jobs: coverage: none tools: composer:v2 - name: Install Composer dependencies (locked) - uses: ramsey/composer-install@v3 + uses: ramsey/composer-install@v4 - name: Twig-CS-Fixer run: vendor/bin/twig-cs-fixer lint --report=github diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 27a5a54..b49e0ce 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -81,7 +81,7 @@ jobs: variant: symfony/symfony:"8.*" steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Install PHP with extensions uses: shivammathur/setup-php@v2 with: @@ -94,7 +94,7 @@ jobs: if: matrix.variant != 'normal' && !startsWith(matrix.variant, 'symfony/symfony') run: composer require ${{ matrix.variant }} --no-update - name: Install Composer dependencies (${{ matrix.dependencies }}) - uses: ramsey/composer-install@v3 + uses: ramsey/composer-install@v4 with: dependency-versions: ${{ matrix.dependencies }} - name: Run Tests with coverage diff --git a/CHANGELOG.md b/CHANGELOG.md index e4da62b..bf3b56d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,22 @@ +v3.0 +------ + +## Changes + +* [#65](https://github.com/cleverage/ui-process-bundle/issues/65) Add support for PHP 8.5 and Symfony 8, update dependencies. Update PHPUnit configuration to version 12 schema and adjust coverage settings. +* [#65](https://github.com/cleverage/ui-process-bundle/issues/65) Mise à jour de la version de doctrine-fixtures-bundle pour inclure la compatibilité avec la version 4 +* [#69](https://github.com/cleverage/ui-process-bundle/issues/69) Upgrade to EasyAdmin V5 + +## Fixes + +* [#63](https://github.com/cleverage/ui-process-bundle/issues/63) Use preprendExtensionConfig instead of loadFromExtension to allow messenger config for execute_process transport +* [#67](https://github.com/cleverage/ui-process-bundle/issues/67) Fix Incorrect datetime persisted in the database log records + +## BC break + +* [#65](https://github.com/cleverage/ui-process-bundle/issues/65) Remove support for PHP 8.1 and Symfony 7.3 +* Please follow [UPGRADE.md v3.0](UPGRADE.md#v30) + v2.3 ------ diff --git a/UPGRADE.md b/UPGRADE.md new file mode 100644 index 0000000..cff141b --- /dev/null +++ b/UPGRADE.md @@ -0,0 +1,20 @@ +Upgrade Guide +============= + +## v3.0 + +### Import routes + +```yaml +// Before (2.x) +ui-process-bundle: + resource: '@CleverAgeUiProcessBundle/src/Controller' + type: attribute + +// After (3.x) +ui-process-bundle: + resource: '@CleverAgeUiProcessBundle/config/routes/*.yaml' +``` +### EasyAdmin + +If you have specific EasyAdmin code on your project, please follow the official [Upgrade Guide](https://github.com/EasyCorp/EasyAdminBundle/blob/5.x/UPGRADE.md) diff --git a/config/routes/controllers.yaml b/config/routes/controllers.yaml new file mode 100644 index 0000000..12cc9c4 --- /dev/null +++ b/config/routes/controllers.yaml @@ -0,0 +1,3 @@ +controllers: + resource: '../../src/Controller' + type: attribute diff --git a/docs/index.md b/docs/index.md index 71780d7..f4e589e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -25,8 +25,7 @@ CleverAge\UiProcessBundle\CleverAgeUiProcessBundle::class => ['all' => true], ```yaml ui-process-bundle: - resource: '@CleverAgeUiProcessBundle/src/Controller' - type: attribute + resource: '@CleverAgeUiProcessBundle/config/routes/*.yaml' ``` ### Doctrine ORM Configuration diff --git a/src/Controller/Admin/LogRecordCrudController.php b/src/Controller/Admin/LogRecordCrudController.php index 78dbac4..95fab08 100644 --- a/src/Controller/Admin/LogRecordCrudController.php +++ b/src/Controller/Admin/LogRecordCrudController.php @@ -33,9 +33,7 @@ use Symfony\Component\Security\Http\Attribute\IsGranted; /** - * @phpstan-template TEntity of AbstractCrudController - * - * @phpstan-extends AbstractCrudController + * @extends AbstractCrudController */ #[IsGranted('ROLE_USER')] class LogRecordCrudController extends AbstractCrudController diff --git a/src/Controller/Admin/ProcessDashboardController.php b/src/Controller/Admin/ProcessDashboardController.php index b86f384..743c7ef 100644 --- a/src/Controller/Admin/ProcessDashboardController.php +++ b/src/Controller/Admin/ProcessDashboardController.php @@ -47,7 +47,7 @@ public function configureDashboard(): Dashboard { return Dashboard::new() ->renderContentMaximized() - ->setTitle(''); + ->setTitle(''); } #[\Override] diff --git a/src/Controller/Admin/ProcessExecutionCrudController.php b/src/Controller/Admin/ProcessExecutionCrudController.php index e5ca107..7d9d77f 100644 --- a/src/Controller/Admin/ProcessExecutionCrudController.php +++ b/src/Controller/Admin/ProcessExecutionCrudController.php @@ -35,9 +35,7 @@ use Symfony\Contracts\Translation\TranslatorInterface; /** - * @phpstan-template TEntity of AbstractCrudController - * - * @phpstan-extends AbstractCrudController + * @extends AbstractCrudController */ #[IsGranted('ROLE_USER')] class ProcessExecutionCrudController extends AbstractCrudController diff --git a/src/Controller/Admin/ProcessScheduleCrudController.php b/src/Controller/Admin/ProcessScheduleCrudController.php index 218cfb9..a48b41a 100644 --- a/src/Controller/Admin/ProcessScheduleCrudController.php +++ b/src/Controller/Admin/ProcessScheduleCrudController.php @@ -37,9 +37,7 @@ use Symfony\Component\Scheduler\Trigger\CronExpressionTrigger; /** - * @phpstan-template TEntity of AbstractCrudController - * - * @phpstan-extends AbstractCrudController + * @extends AbstractCrudController */ class ProcessScheduleCrudController extends AbstractCrudController { diff --git a/src/Controller/Admin/UserCrudController.php b/src/Controller/Admin/UserCrudController.php index 893ef64..1ce2c92 100644 --- a/src/Controller/Admin/UserCrudController.php +++ b/src/Controller/Admin/UserCrudController.php @@ -33,9 +33,7 @@ use Symfony\Component\Security\Http\Attribute\IsGranted; /** - * @phpstan-template TEntity of AbstractCrudController - * - * @phpstan-extends AbstractCrudController + * @extends AbstractCrudController */ #[IsGranted('ROLE_USER')] class UserCrudController extends AbstractCrudController diff --git a/src/Monolog/Handler/ProcessHandler.php b/src/Monolog/Handler/ProcessHandler.php index 788be8e..a086e88 100644 --- a/src/Monolog/Handler/ProcessHandler.php +++ b/src/Monolog/Handler/ProcessHandler.php @@ -65,7 +65,7 @@ public function getFilename(): ?string } #[\Override] - public function write(LogRecord $record): void + protected function write(LogRecord $record): void { if (!$this->filenameSet) { // Skip writing if no filename has been set yet