3.0.0-beta1
Pre-releaseFeatures
- added support for Symfony 5 compatibility
BC Breaks
-
the route generation feature was removed, setting it to another value than
falseleads to an
exception -
support for serializing exceptions was removed, setting the
fos_rest.exception.serialize_exceptions
option to anything else thanfalseleads to an exception -
support for returning anything other than
stringornullfromresolve()when implementing
theVersionResolverInterfacewas removed -
removed support for passing version numbers as integers to
Context::setVersion() -
removed the
isFormatTemplating(),renderTemplate(), andprepareTemplateParameters()methods
from theViewHandlerclass and theViewHandlerInterface -
the constructor of the
ViewHandlerclass isprivatenow, use the staticcreate()factory
method instead -
removed the
setTemplateVar(),setPopulateDefaultVars(),getTemplateVar(), and
isPopulateDefaultVars()methods from theController\Annotations\Viewclass -
removed the
setEngine(),setTemplate(),setTemplateData(),setTemplateVar(),getEngine(),
getTemplate(),getTemplateData(), andgetTemplateVar()methods from theView\Viewclass -
changed the default value of the
fos_rest.service.templatingandfos_rest.view.default_engine
options tonull -
changed the default value of the
fos_rest.view.force_redirectsoption to the empty array -
removed the
setMaxDepth()/getMaxDepth()methods from theContextclass, use
enableMaxDepth()/disableMaxDepth()instead -
dropped support for Symfony components < 4.4
-
removed the following options:
fos_rest.exception.exception_controllerfos_rest.exception.exception_listenerfos_rest.exception.servicefos_rest.view.templating_formats
-
removed the following classes:
FOS\RestBundle\Controller\Annotations\NamePrefixFOS\RestBundle\Controller\Annotations\NoRouteFOS\RestBundle\Controller\Annotations\PrefixFOS\RestBundle\Controller\Annotations\RouteResourceFOS\RestBundle\Controller\Annotations\VersionFOS\RestBundle\Controller\ExceptionControllerFOS\RestBundle\Controller\TemplatingExceptionControllerFOS\RestBundle\Controller\TwigExceptionControllerFOS\RestBundle\EventListener\ExceptionListenerFOS\RestBundle\Routing\Loader\DirectoryRouteLoaderFOS\RestBundle\Routing\Loader\Reader\RestActionReaderFOS\RestBundle\Routing\Loader\Reader\RestControllerReaderFOS\RestBundle\Routing\Loader\RestRouteLoaderFOS\RestBundle\Routing\Loader\RestRouteProcessorFOS\RestBundle\Routing\Loader\RestXmlCollectionLoaderFOS\RestBundle\Routing\Loader\RestYamlCollectionLoaderFOS\RestBundle\Routing\ClassResourceInterfaceFOS\RestBundle\Routing\RestRouteCollectionFOS\RestBundle\Serializer\Normalizer\ExceptionHandlerFOS\RestBundle\Serializer\Normalizer\ExceptionNormalizer
-
removed the following services and aliases:
fos_rest.exception_listenerfos_rest.exception.controllerfos_rest.exception.twig_controllerfos_rest.routing.loader.controllerfos_rest.routing.loader.directoryfos_rest.routing.loader.processorfos_rest.routing.loader.reader.controllerfos_rest.routing.loader.reader.actionfos_rest.routing.loader.xml_collectionfos_rest.routing.loader.yaml_collectionfos_rest.serializer.exception_normalizer.jmsfos_rest.serializer.exception_normalizer.symfonyfos_rest.templating
-
the following classes are marked as
internal(backwards compatibility will no longer be guaranteed):FOS\RestBundle\DependencyInjection\Compiler\HandlerRegistryDecorationPassFOS\RestBundle\DependencyInjection\FOSRestExtensionFOS\RestBundle\Form\Extension\DisableCSRFExtensionFOS\RestBundle\Form\Transformer\EntityToIdObjectTransformerFOS\RestBundle\Normalizer\CamelKeysNormalizerFOS\RestBundle\Normalizer\CamelKeysNormalizerWithLeadingUnderscoreFOS\RestBundle\Serializer\Normalizer\FormErrorHandlerFOS\RestBundle\Serializer\Normalizer\FormErrorNormalizerFOS\RestBundle\Util\ExceptionValueMap
-
the following classes are now
final:FOS\RestBundle\Decoder\ContainerDecoderProviderFOS\RestBundle\Decoder\JsonDecoderFOS\RestBundle\Decoder\JsonToFormDecoderFOS\RestBundle\Decoder\XmlDecoderFOS\RestBundle\Form\Transformer\EntityToIdObjectTransformerFOS\RestBundle\Inflector\DoctrineInflectorFOS\RestBundle\Negotiation\FormatNegotiatorFOS\RestBundle\Request\ParamFetcherFOS\RestBundle\Request\ParamReaderFOS\RestBundle\Request\RequestBodyParamConverterFOS\RestBundle\Response\AllowMethodsLoader\AllowedMethodsRouterLoaderFOS\RestBundle\Serializer\JMSSerializerAdapterFOS\RestBundle\Serializer\SymfonySerializerAdapterFOS\RestBundle\Version\ChainVersionResolverFOS\RestBundle\Version\Resolver\HeaderVersionResolverFOS\RestBundle\Version\Resolver\MediaTypeVersionResolverFOS\RestBundle\Version\Resolver\QueryParameterVersionResolverFOS\RestBundle\View\JsonpHandlerFOS\RestBundle\View\ViewFOS\RestBundle\View\ViewHandler