From c840fee9115d4c9990085568efd26f8ff6a58f07 Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Wed, 1 Nov 2023 01:16:17 +0100 Subject: [PATCH] Release 2.2.1 (#4389) * added missing functions to invoice security policy --- src/Constants.php | 4 ++-- src/Form/ContractByUserForm.php | 2 +- src/Twig/SecurityPolicy/InvoicePolicy.php | 10 ++++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/Constants.php b/src/Constants.php index 1edd1018..be1ce73d 100644 --- a/src/Constants.php +++ b/src/Constants.php @@ -17,11 +17,11 @@ class Constants /** * The current release version */ - public const VERSION = '2.2.0'; + public const VERSION = '2.2.1'; /** * The current release: major * 10000 + minor * 100 + patch */ - public const VERSION_ID = 20200; + public const VERSION_ID = 20201; /** * The software name */ diff --git a/src/Form/ContractByUserForm.php b/src/Form/ContractByUserForm.php index 69ea570b..e945d213 100644 --- a/src/Form/ContractByUserForm.php +++ b/src/Form/ContractByUserForm.php @@ -16,7 +16,7 @@ use Symfony\Component\Form\AbstractType; */ final class ContractByUserForm extends AbstractType { - public function getParent(): ?string + public function getParent(): string { return YearByUserForm::class; } diff --git a/src/Twig/SecurityPolicy/InvoicePolicy.php b/src/Twig/SecurityPolicy/InvoicePolicy.php index cf1471ff..ed459228 100644 --- a/src/Twig/SecurityPolicy/InvoicePolicy.php +++ b/src/Twig/SecurityPolicy/InvoicePolicy.php @@ -169,6 +169,10 @@ final class InvoicePolicy implements SecurityPolicyInterface // vendor/symfony/twig-bridge/Extension/AssetExtension.php 'asset', + // ================================================================= + // vendor/symfony/twig-bridge/Extension/SecurityExtension.php + 'is_granted', + // ================================================================= // Twig/RuntimeExtensions.php 'qr_code_data_uri', @@ -176,6 +180,12 @@ final class InvoicePolicy implements SecurityPolicyInterface // ================================================================= // Twig/Configuration.php 'config', + + // ================================================================= + // Twig/LocaleFormatExtensions.php + 'create_date', + 'month_names', + 'locale_format', ] )); }