Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.45 KB

UPGRADE-4.x.md

File metadata and controls

43 lines (28 loc) · 1.45 KB

UPGRADE 4.x

UPGRADE FROM 4.x to 4.x

Dependencies

  • "sonata-project/datagrid-bundle" is bumped from ^2.4 to ^3.0.

    If you are extending these methods, you MUST add argument and return type declarations:

    • Sonata\UserBundle\Entity\UserManager::getPager()
    • Sonata\UserBundle\Entity\GroupManager::getPager()
  • Added support for "nelmio/api-doc-bundle" ^3.6.

    Controllers for NelmioApiDocBundle v2 were moved under Sonata\UserBundle\Controller\Api\Legacy\ namespace and controllers for NelmioApiDocBundle v3 were added as replacement. If you extend them, you must ensure they are using the corresponding inheritance.

UPGRADE FROM 4.6 to 4.7

SonataEasyExtends is deprecated

Registering SonataEasyExtendsBundle bundle is deprecated, it SHOULD NOT be registered. Register SonataDoctrineBundle bundle instead.

UPGRADE FROM 4.2.3 to 4.3

Deprecated TwoStepVerificationCommand with no arguments

Attempting to run that command with 2FA enabled and without building the command with its $helper and $userManager arguments beforehand is deprecated. Make sure you provide both arguments.

UPGRADE FROM 4.1 to 4.1.1

Deprecated UserGenderListType

Relying on this class to provide user gender list on sonata forms is deprecated and will be removed in 5.0. You should use Symfony\Component\Form\Extension\Core\Type\ChoiceType instead.