Skip to content

7.3 Scheduler breaks without Serializer installed #60880

@emhovis

Description

@emhovis

Symfony version(s) affected

7.3.*

Description

7.3 included the following change to the Scheduler: #59679

This now requires the Serializer component to be installed if the Scheduler component is, but it isn't set as a composer dependency or mentioned in the UPGRADE file.

How to reproduce

Install the Scheduler component without the Serializer component.

Possible Solution

Making the Serializer component a dependency for the Scheduler component is a quick fix but ultimately a better solution should be pursued.

Additional Context

The following is what cache:clear spits out upon updating to 7.3 without the Symfony Serializer installed

Script cache:clear returned with error code 255
!!  Symfony\Component\ErrorHandler\Error\ClassNotFoundError {#41
!!    #message: """
!!      Attempted to load interface "DenormalizerInterface" from namespace "Symfony\Component\Serializer\Normalizer".\n
!!      """
!!    #code: 0
!!    #file: "./vendor/symfony/scheduler/Messenger/Serializer/Normalizer/SchedulerTriggerNormalizer.php"
!!    #line: 19
!!    trace: {
!!      ./vendor/symfony/scheduler/Messenger/Serializer/Normalizer/SchedulerTriggerNormalizer.php:19 { …}
!!      ./vendor/symfony/error-handler/DebugClassLoader.php:306 { …}
!!      Symfony\Component\ErrorHandler\DebugClassLoader->loadClass() {}
!!      ./vendor/symfony/framework-bundle/DependencyInjection/FrameworkExtension.php:2296 { …}
!!      ./vendor/symfony/framework-bundle/DependencyInjection/FrameworkExtension.php:566 { …}
!!      ./vendor/symfony/dependency-injection/Compiler/MergeExtensionConfigurationPass.php:81 { …}
!!      ./vendor/symfony/http-kernel/DependencyInjection/MergeExtensionConfigurationPass.php:40 { …}
!!      ./vendor/symfony/dependency-injection/Compiler/Compiler.php:73 { …}
!!      ./vendor/symfony/dependency-injection/ContainerBuilder.php:813 { …}
!!      ./vendor/symfony/http-kernel/Kernel.php:499 { …}
!!      ./vendor/symfony/http-kernel/Kernel.php:744 { …}
!!      ./vendor/symfony/http-kernel/Kernel.php:120 { …}
!!      ./vendor/symfony/framework-bundle/Console/Application.php:177 { …}
!!      ./vendor/symfony/framework-bundle/Console/Application.php:69 { …}
!!      ./vendor/symfony/console/Application.php:192 { …}
!!      ./bin/console:39 {
!!        › $application = new Application($kernel);
!!        › $application->run($input);
!!        ›
!!      }
!!    }
!!  }
!!  2025-06-23T11:42:49-05:00 [critical] Uncaught Error: Interface "Symfony\Component\Serializer\Normalizer\DenormalizerInterface" not found
!!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy