diff --git a/CHANGELOG.md b/CHANGELOG.md index 5991bb7c..aad56238 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [3.13.0](https://github.com/sonata-project/SonataNotificationBundle/compare/3.12.0...3.13.0) - 2021-06-27 +### Changed +- [[#580](https://github.com/sonata-project/SonataNotificationBundle/pull/580)] Marked classes to be final in the next major version ([@franmomu](https://github.com/franmomu)) + +### Fixed +- [[#577](https://github.com/sonata-project/SonataNotificationBundle/pull/577)] Fixed API form handling ([@franmomu](https://github.com/franmomu)) + ## [3.12.0](https://github.com/sonata-project/SonataNotificationBundle/compare/3.11.0...3.12.0) - 2021-03-24 ### Added - [[#564](https://github.com/sonata-project/SonataNotificationBundle/pull/564)] Support for "symfony/config:^5.2" ([@phansys](https://github.com/phansys)) diff --git a/UPGRADE-3.x.md b/UPGRADE-3.x.md index 5b1ae344..6d04fab6 100644 --- a/UPGRADE-3.x.md +++ b/UPGRADE-3.x.md @@ -1,8 +1,8 @@ UPGRADE 3.x =========== -UPGRADE FROM 3.x to 3.x -======================= +UPGRADE FROM 3.12 to 3.13 +========================= ### Close API diff --git a/src/Admin/MessageAdmin.php b/src/Admin/MessageAdmin.php index 60eef0b0..0e4f772c 100644 --- a/src/Admin/MessageAdmin.php +++ b/src/Admin/MessageAdmin.php @@ -22,7 +22,7 @@ /** * @phpstan-extends AbstractAdmin<\Sonata\NotificationBundle\Model\Message> - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class MessageAdmin extends AbstractAdmin { diff --git a/src/Backend/AMQPBackend.php b/src/Backend/AMQPBackend.php index ee66f45f..8880360a 100644 --- a/src/Backend/AMQPBackend.php +++ b/src/Backend/AMQPBackend.php @@ -32,7 +32,7 @@ /** * Consumer side of the rabbitMQ backend. * - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class AMQPBackend implements BackendInterface { diff --git a/src/Backend/AMQPBackendDispatcher.php b/src/Backend/AMQPBackendDispatcher.php index d4d7ba35..ca933bc1 100644 --- a/src/Backend/AMQPBackendDispatcher.php +++ b/src/Backend/AMQPBackendDispatcher.php @@ -29,7 +29,7 @@ /** * Producer side of the rabbitmq backend. * - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class AMQPBackendDispatcher extends QueueBackendDispatcher { diff --git a/src/Backend/BackendHealthCheck.php b/src/Backend/BackendHealthCheck.php index 59b80f95..17cd3ddf 100644 --- a/src/Backend/BackendHealthCheck.php +++ b/src/Backend/BackendHealthCheck.php @@ -16,7 +16,7 @@ use Laminas\Diagnostics\Check\AbstractCheck; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class BackendHealthCheck extends AbstractCheck { diff --git a/src/Backend/MessageManagerBackend.php b/src/Backend/MessageManagerBackend.php index 76f641f4..1211f7ce 100644 --- a/src/Backend/MessageManagerBackend.php +++ b/src/Backend/MessageManagerBackend.php @@ -24,7 +24,7 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class MessageManagerBackend implements BackendInterface { diff --git a/src/Backend/MessageManagerBackendDispatcher.php b/src/Backend/MessageManagerBackendDispatcher.php index ddb06259..33b4a1a0 100644 --- a/src/Backend/MessageManagerBackendDispatcher.php +++ b/src/Backend/MessageManagerBackendDispatcher.php @@ -21,7 +21,7 @@ /** * Producer side of the doctrine backend. * - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class MessageManagerBackendDispatcher extends QueueBackendDispatcher { diff --git a/src/Backend/PostponeRuntimeBackend.php b/src/Backend/PostponeRuntimeBackend.php index aa164552..8f04d31e 100644 --- a/src/Backend/PostponeRuntimeBackend.php +++ b/src/Backend/PostponeRuntimeBackend.php @@ -27,7 +27,7 @@ * * @author Toni Uebernickel * - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class PostponeRuntimeBackend extends RuntimeBackend { diff --git a/src/Command/CleanupCommand.php b/src/Command/CleanupCommand.php index ac39ed97..df1fc51d 100644 --- a/src/Command/CleanupCommand.php +++ b/src/Command/CleanupCommand.php @@ -20,7 +20,7 @@ use Symfony\Component\Console\Output\OutputInterface; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class CleanupCommand extends ContainerAwareCommand { diff --git a/src/Command/ConsumerHandlerCommand.php b/src/Command/ConsumerHandlerCommand.php index 7d436dd5..aa7c9901 100644 --- a/src/Command/ConsumerHandlerCommand.php +++ b/src/Command/ConsumerHandlerCommand.php @@ -26,7 +26,7 @@ use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class ConsumerHandlerCommand extends ContainerAwareCommand { diff --git a/src/Command/CreateAndPublishCommand.php b/src/Command/CreateAndPublishCommand.php index feb49c4b..fa6ad0d5 100644 --- a/src/Command/CreateAndPublishCommand.php +++ b/src/Command/CreateAndPublishCommand.php @@ -19,7 +19,7 @@ use Symfony\Component\Console\Output\OutputInterface; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class CreateAndPublishCommand extends ContainerAwareCommand { diff --git a/src/Command/ListHandlerCommand.php b/src/Command/ListHandlerCommand.php index e21e1dbc..d57ea7af 100644 --- a/src/Command/ListHandlerCommand.php +++ b/src/Command/ListHandlerCommand.php @@ -18,7 +18,7 @@ use Symfony\Component\Console\Output\OutputInterface; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class ListHandlerCommand extends ContainerAwareCommand { diff --git a/src/Command/ListQueuesCommand.php b/src/Command/ListQueuesCommand.php index ecd98514..09e3a9f6 100644 --- a/src/Command/ListQueuesCommand.php +++ b/src/Command/ListQueuesCommand.php @@ -19,7 +19,7 @@ use Symfony\Component\Console\Output\OutputInterface; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class ListQueuesCommand extends ContainerAwareCommand { diff --git a/src/Command/RestartCommand.php b/src/Command/RestartCommand.php index ce2c7d1d..2669b51f 100644 --- a/src/Command/RestartCommand.php +++ b/src/Command/RestartCommand.php @@ -25,7 +25,7 @@ use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class RestartCommand extends ContainerAwareCommand { diff --git a/src/Consumer/ConsumerEvent.php b/src/Consumer/ConsumerEvent.php index 5431a0a0..b7c8324d 100644 --- a/src/Consumer/ConsumerEvent.php +++ b/src/Consumer/ConsumerEvent.php @@ -17,7 +17,7 @@ use Symfony\Contracts\EventDispatcher\Event; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class ConsumerEvent extends Event implements ConsumerEventInterface { diff --git a/src/Consumer/ConsumerReturnInfo.php b/src/Consumer/ConsumerReturnInfo.php index 66cc9a1f..df343e2d 100644 --- a/src/Consumer/ConsumerReturnInfo.php +++ b/src/Consumer/ConsumerReturnInfo.php @@ -18,7 +18,7 @@ * * @author Kevin Nedelec * - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class ConsumerReturnInfo { diff --git a/src/Consumer/LoggerConsumer.php b/src/Consumer/LoggerConsumer.php index b9c7c578..9e391bf9 100644 --- a/src/Consumer/LoggerConsumer.php +++ b/src/Consumer/LoggerConsumer.php @@ -17,7 +17,7 @@ use Sonata\NotificationBundle\Exception\InvalidParameterException; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class LoggerConsumer implements ConsumerInterface { diff --git a/src/Consumer/Metadata.php b/src/Consumer/Metadata.php index 73eb2b9c..c45fb38b 100644 --- a/src/Consumer/Metadata.php +++ b/src/Consumer/Metadata.php @@ -14,7 +14,7 @@ namespace Sonata\NotificationBundle\Consumer; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class Metadata { diff --git a/src/Consumer/SwiftMailerConsumer.php b/src/Consumer/SwiftMailerConsumer.php index d0dd64c5..8347f0a9 100644 --- a/src/Consumer/SwiftMailerConsumer.php +++ b/src/Consumer/SwiftMailerConsumer.php @@ -16,7 +16,7 @@ use Sonata\NotificationBundle\Model\MessageInterface; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class SwiftMailerConsumer implements ConsumerInterface { diff --git a/src/Controller/Api/MessageController.php b/src/Controller/Api/MessageController.php index f3a61121..6ca16b17 100644 --- a/src/Controller/Api/MessageController.php +++ b/src/Controller/Api/MessageController.php @@ -28,7 +28,7 @@ /** * @author Hugo Briand * - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class MessageController { diff --git a/src/Controller/MessageAdminController.php b/src/Controller/MessageAdminController.php index 9aaddc96..3a8a669b 100644 --- a/src/Controller/MessageAdminController.php +++ b/src/Controller/MessageAdminController.php @@ -21,7 +21,7 @@ use Symfony\Component\Security\Core\Exception\AccessDeniedException; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class MessageAdminController extends CRUDController { diff --git a/src/DependencyInjection/Compiler/NotificationCompilerPass.php b/src/DependencyInjection/Compiler/NotificationCompilerPass.php index 68c90cbb..ac0ebf00 100644 --- a/src/DependencyInjection/Compiler/NotificationCompilerPass.php +++ b/src/DependencyInjection/Compiler/NotificationCompilerPass.php @@ -22,7 +22,7 @@ use Symfony\Component\DependencyInjection\Reference; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 * * @internal since sonata-project/notification-bundle 4.0 */ diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index ef712878..8e1e35b1 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -20,7 +20,7 @@ use Symfony\Component\Config\Definition\ConfigurationInterface; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class Configuration implements ConfigurationInterface { diff --git a/src/DependencyInjection/SonataNotificationExtension.php b/src/DependencyInjection/SonataNotificationExtension.php index 9cb1166c..d6fb540f 100644 --- a/src/DependencyInjection/SonataNotificationExtension.php +++ b/src/DependencyInjection/SonataNotificationExtension.php @@ -27,7 +27,7 @@ use Symfony\Component\HttpKernel\DependencyInjection\Extension; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class SonataNotificationExtension extends Extension { diff --git a/src/Entity/MessageManager.php b/src/Entity/MessageManager.php index 64e74ffd..fcf6fef7 100644 --- a/src/Entity/MessageManager.php +++ b/src/Entity/MessageManager.php @@ -21,7 +21,7 @@ use Sonata\NotificationBundle\Model\MessageManagerInterface; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class MessageManager extends BaseEntityManager implements MessageManagerInterface { diff --git a/src/Event/DoctrineBackendOptimizeListener.php b/src/Event/DoctrineBackendOptimizeListener.php index bcf13de2..ffb2dd6d 100644 --- a/src/Event/DoctrineBackendOptimizeListener.php +++ b/src/Event/DoctrineBackendOptimizeListener.php @@ -22,7 +22,7 @@ * * @author Kevin Nedelec * - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class DoctrineBackendOptimizeListener implements IterationListener { diff --git a/src/Event/DoctrineOptimizeListener.php b/src/Event/DoctrineOptimizeListener.php index e169cedb..030ea500 100644 --- a/src/Event/DoctrineOptimizeListener.php +++ b/src/Event/DoctrineOptimizeListener.php @@ -22,7 +22,7 @@ * * @author Kevin Nedelec * - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class DoctrineOptimizeListener implements IterationListener { diff --git a/src/Event/IterateEvent.php b/src/Event/IterateEvent.php index c4db2b11..9d8416e3 100644 --- a/src/Event/IterateEvent.php +++ b/src/Event/IterateEvent.php @@ -23,7 +23,7 @@ * * @author Kevin Nedelec * - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class IterateEvent extends Event { diff --git a/src/Exception/BackendNotFoundException.php b/src/Exception/BackendNotFoundException.php index e540debd..8f21bb58 100644 --- a/src/Exception/BackendNotFoundException.php +++ b/src/Exception/BackendNotFoundException.php @@ -14,7 +14,7 @@ namespace Sonata\NotificationBundle\Exception; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class BackendNotFoundException extends \RuntimeException { diff --git a/src/Exception/HandlingException.php b/src/Exception/HandlingException.php index 950c3095..fd7c398c 100644 --- a/src/Exception/HandlingException.php +++ b/src/Exception/HandlingException.php @@ -14,7 +14,7 @@ namespace Sonata\NotificationBundle\Exception; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class HandlingException extends \RuntimeException { diff --git a/src/Exception/InvalidParameterException.php b/src/Exception/InvalidParameterException.php index 735e544c..71e851c4 100644 --- a/src/Exception/InvalidParameterException.php +++ b/src/Exception/InvalidParameterException.php @@ -21,7 +21,7 @@ class InvalidParameterException extends CoreBundleException } } else { /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class InvalidParameterException extends \RuntimeException { diff --git a/src/Form/Type/MessageSerializationType.php b/src/Form/Type/MessageSerializationType.php index 93887e39..d275664b 100644 --- a/src/Form/Type/MessageSerializationType.php +++ b/src/Form/Type/MessageSerializationType.php @@ -16,7 +16,7 @@ use Sonata\Form\Type\BaseDoctrineORMSerializationType; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class MessageSerializationType extends BaseDoctrineORMSerializationType { diff --git a/src/Iterator/AMQPMessageIterator.php b/src/Iterator/AMQPMessageIterator.php index ea70ba36..fb6e2e5b 100644 --- a/src/Iterator/AMQPMessageIterator.php +++ b/src/Iterator/AMQPMessageIterator.php @@ -19,7 +19,7 @@ use Sonata\NotificationBundle\Model\Message; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class AMQPMessageIterator implements MessageIteratorInterface { diff --git a/src/Iterator/ErroneousMessageIterator.php b/src/Iterator/ErroneousMessageIterator.php index eb941fdf..ce794921 100644 --- a/src/Iterator/ErroneousMessageIterator.php +++ b/src/Iterator/ErroneousMessageIterator.php @@ -17,7 +17,7 @@ use Sonata\NotificationBundle\Model\MessageManagerInterface; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class ErroneousMessageIterator extends MessageManagerMessageIterator { diff --git a/src/Iterator/IteratorProxyMessageIterator.php b/src/Iterator/IteratorProxyMessageIterator.php index e4a5fd22..c44c1b14 100644 --- a/src/Iterator/IteratorProxyMessageIterator.php +++ b/src/Iterator/IteratorProxyMessageIterator.php @@ -16,7 +16,7 @@ /** * @author Toni Uebernickel * - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class IteratorProxyMessageIterator implements MessageIteratorInterface { diff --git a/src/Selector/ErroneousMessagesSelector.php b/src/Selector/ErroneousMessagesSelector.php index db7a2569..35cbf29a 100644 --- a/src/Selector/ErroneousMessagesSelector.php +++ b/src/Selector/ErroneousMessagesSelector.php @@ -17,7 +17,7 @@ use Sonata\NotificationBundle\Model\MessageInterface; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class ErroneousMessagesSelector { diff --git a/src/SonataNotificationBundle.php b/src/SonataNotificationBundle.php index 7aefcef8..16cc1894 100644 --- a/src/SonataNotificationBundle.php +++ b/src/SonataNotificationBundle.php @@ -20,7 +20,7 @@ use Symfony\Component\HttpKernel\Bundle\Bundle; /** - * @final since sonata-project/notification-bundle 3.x + * @final since sonata-project/notification-bundle 3.13 */ class SonataNotificationBundle extends Bundle {