UPGRADE 3.x
Passing no 3rd argument to Menu\Provider\GroupMenuProvider
is deprecated.
Pass Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface
as 3rd argument.
===========
The $translator
property and the corresponding methods (setTranslator
, getTranslator
, trans
and transChoice
) in AbstractAdmin
are deprecated.
Please use CRUDController::trans
or twig templates instead.
The $container
property in Twig/GlobalVariables
is deprecated.
The Sonata\AdminBundle\Form\Type\ModelTypeList
class is now deprecated.
Use Sonata\AdminBundle\Form\Type\ModelListType
instead.
All files under the Tests
directory are now correctly handled as internal test classes.
You can't extend them anymore, because they are only loaded when running internal tests.
More information can be found in the composer docs.
The $context
argument is deprecated and will be removed.
Instead of relying on it (and using a switch
statement),
rely on an abstraction, and inject different implementations of this abstraction in different actions.
Here is an example.
Since AbstractAdmin::configureBatchActions
is present, you should not override AbstractAdmin::getBatchActions
.
This method will be final in 4.0.
Now AbstractAdmin::getSubject()
return null
or object
of subject entity. Previously,
AbstractAdmin::getSubject()
may return false
if entity identifier not match regexp /^[0-9A-Fa-f\-]+$/
.
The Admin
class is deprecated. Use AbstractAdmin
instead.
The AdminExtension
class is deprecated. Use AbstractAdminExtension
instead.
The Twig extension method that fallback to a default template when the specified one does not exist. You can no longer rely on that and should always specify templates that exist.
buildBreacrumbs
is deprecated, and no replacement is given, it will become an internal method.getBreadcrumbs
is deprecated in favor of the homonym method of thesonata.admin.breadcrumbs_builder
service.- The breadcrumbs builder accessors are deprecated,
the
sonata.admin.breadcrumbs_builder
service should be used directly instead.