DebugHandlersListener
class has been marked as final
KernelInterface::locateResource
FileLocator::__construct
%kernel.root_dir%/Resources
and %kernel.root_dir%
as
fallback directories. Resources like service definitions are usually loaded relative to the
current directory or with a glob pattern. The fallback directories have never been advocated
so you likely do not use those in any app based on the SF Standard or Flex edition.@final
ErrorController
to enable the preview and error rendering mechanismAjaxDataCollector
, ConfigDataCollector
, EventDataCollector
,
ExceptionDataCollector
, LoggerDataCollector
, MemoryDataCollector
,
RequestDataCollector
and TimeDataCollector
classes as @final
.RouterDataCollector::collect()
method as @final
.DataCollectorInterface::collect()
and Profiler::collect()
methods third parameter signature
will be \Throwable $exception = null
instead of \Exception $exception = null
in Symfony 5.0.ExceptionEvent::get/setException()
, use get/setThrowable()
insteadExceptionListener
, use ErrorListener
insteadClient
to HttpKernelBrowser
KernelInterface
doesn't extend Serializable
anymoreKernel::serialize()
and unserialize()
methodsSymfony\Component\HttpKernel\EventListener\AddRequestFormatsListener
Symfony\Component\HttpKernel\EventListener\LocaleListener
set the default locale earlyTranslatorListener
in favor of LocaleAwareListener
LocaleAwareInterface
implementations into the LocaleAwareListener
FileLinkFormatter
final and not implement Serializable
anymoreDataCollector
doesn't implement Serializable
anymore, you should
store all the serialized state in the data property insteadDumpDataCollector
has been marked as final
FilterControllerArgumentsEvent
to ControllerArgumentsEvent
FilterControllerEvent
to ControllerEvent
FilterResponseEvent
to ResponseEvent
GetResponseEvent
to RequestEvent
GetResponseForControllerResultEvent
to ViewEvent
GetResponseForExceptionEvent
to ExceptionEvent
PostResponseEvent
to TerminateEvent
HttpClientKernel
for handling requests with an HttpClientInterface
instancetrace_header
and trace_level
configuration options to HttpCache
KernelInterface::getRootDir()
and the kernel.root_dir
parameterKernelInterface::getName()
and the kernel.name
parameterConfigDataCollector
ConfigDataCollector::getApplicationName()
ConfigDataCollector::getApplicationVersion()
EventDataCollector
ExceptionListener
now logs exceptions at priority 0
(previously logged at -128
)service::method
to reference controllers, making it consistent with other cases. It is recommended over the service:action
syntax with a single colon, which will be deprecated in the future.Symfony\Component\HttpKernel\Controller\ArgumentResolver\TraceableValueResolver
DataCollector::varToString()
method, use DataCollector::cloneVar()
insteadDataCollector::cloneVar()
method requires the VarDumper componentValueExporter
classControllerResolverInterface::getArguments()
TraceableControllerResolver::getArguments()
ControllerResolver::getArguments()
and the ability to resolve argumentsargument_resolver
service dependency from the debug.controller_resolver
LazyLoadingFragmentHandler::addRendererService()
Psr6CacheClearer::addPool()
Extension::addClassesToCompile()
and Extension::getClassesToCompile()
Kernel::loadClassCache()
, Kernel::doLoadClassCache()
, Kernel::setClassCache()
,
and Kernel::getEnvParameters()
X-Status-Code
when handling exceptions in the HttpKernel
has been dropped, use the HttpKernel::allowCustomResponseCode()
method
insteadChainCacheClearer::add()
methodCacheaWarmerAggregate::add()
and setWarmers()
methodsCacheWarmerAggregate
and ChainCacheClearer
classes finalLogger
class that writes in stderr
CompilerPassInterface
able to process the containerRebootableInterface
and implemented it in Kernel
EnvParametersResource
Symfony\Component\HttpKernel\Client::catchExceptions()
ChainCacheClearer::add()
methodCacheaWarmerAggregate::add()
and setWarmers()
methodsCacheWarmerAggregate
and ChainCacheClearer
classes finalreset()
methodDebugLoggerInterface
without a clear()
methodkernel.project_dir
and Kernel::getProjectDir()
kernel.root_dir
and Kernel::getRootDir()
Kernel::getEnvParameters()
SYMFONY__
environment variablesUriSigner
LazyLoadingFragmentHandler::addRendererService()
Extension::addClassesToCompile()
and Extension::getClassesToCompile()
Psr6CacheClearer::addPool()
DataCollector::varToString()
, use cloneVar()
insteadAbstractSurrogate::addSurrogateCapability
to 'symfony'ControllerArgumentValueResolverPass
ControllerResolver::getArguments()
Symfony\Component\HttpKernel\Controller\ArgumentResolverInterface
Symfony\Component\HttpKernel\Controller\ArgumentResolverInterface
as argument to HttpKernel
Symfony\Component\HttpKernel\Controller\ArgumentResolver
Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::getMethod()
Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::getRedirect()
kernel.controller_arguments
event, triggered after controller arguments have been resolvedSymfony\Component\HttpKernel\Kernel::init()
Symfony\Component\HttpKernel\Kernel::isClassInActiveBundle()
and Symfony\Component\HttpKernel\KernelInterface::isClassInActiveBundle()
Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher::setProfiler()
Symfony\Component\HttpKernel\EventListener\FragmentListener::getLocalIpAddresses()
Symfony\Component\HttpKernel\EventListener\LocaleListener::setRequest()
Symfony\Component\HttpKernel\EventListener\RouterListener::setRequest()
Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest()
Symfony\Component\HttpKernel\Fragment\FragmentHandler::setRequest()
Symfony\Component\HttpKernel\HttpCache\Esi::hasSurrogateEsiCapability()
Symfony\Component\HttpKernel\HttpCache\Esi::addSurrogateEsiCapability()
Symfony\Component\HttpKernel\HttpCache\Esi::needsEsiParsing()
Symfony\Component\HttpKernel\HttpCache\HttpCache::getEsi()
Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel
Symfony\Component\HttpKernel\DependencyInjection\RegisterListenersPass
Symfony\Component\HttpKernel\EventListener\ErrorsLoggerListener
Symfony\Component\HttpKernel\EventListener\EsiListener
Symfony\Component\HttpKernel\HttpCache\EsiResponseCacheStrategy
Symfony\Component\HttpKernel\HttpCache\EsiResponseCacheStrategyInterface
Symfony\Component\HttpKernel\Log\LoggerInterface
Symfony\Component\HttpKernel\Log\NullLogger
Symfony\Component\HttpKernel\Profiler::import()
Symfony\Component\HttpKernel\Profiler::export()
Profiler::import
and Profiler::export
Symfony\Component\HttpKernel\EventListener\ErrorsLoggerListener
, use Symfony\Component\HttpKernel\EventListener\DebugHandlersListener
insteadSymfony\Component\HttpKernel\Kernel::isClassInActiveBundle
and Symfony\Component\HttpKernel\KernelInterface::isClassInActiveBundle
Symfony\Component\HttpKernel\DependencyInjection\RegisterListenersPass
, use Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass
insteadSymfony\Component\HttpKernel\EventListener\DeprecationLoggerListener
to Symfony\Component\HttpKernel\EventListener\ErrorsLoggerListener
and changed its constructorSymfony\Component\HttpKernel\Debug\ErrorHandler
, Symfony\Component\HttpKernel\Debug\ExceptionHandler
,
Symfony\Component\HttpKernel\Exception\FatalErrorException
and Symfony\Component\HttpKernel\Exception\FlattenException
Symfony\Component\HttpKernel\Kernel::init()