Skip to content

Commit

Permalink
4.8.0 (#7715)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Jan 25, 2022
1 parent 974ce42 commit 96aec2d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,14 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [4.8.0](https://github.com/sonata-project/SonataAdminBundle/compare/4.7.0...4.8.0) - 2022-01-25
### Added
- [[#7684](https://github.com/sonata-project/SonataAdminBundle/pull/7684)] `code`, `model_class` and `controller` attribute to the `sonata.admin` service tag ([@VincentLanglet](https://github.com/VincentLanglet))
- [[#7708](https://github.com/sonata-project/SonataAdminBundle/pull/7708)] Added support to display backed enums in lists and show templates ([@franmomu](https://github.com/franmomu))

### Deprecated
- [[#7684](https://github.com/sonata-project/SonataAdminBundle/pull/7684)] Passing the code, the model class and the controller name as first, second and third argument of the Admin constructor. Use the `sonata.admin` attributes instead. ([@VincentLanglet](https://github.com/VincentLanglet))

## [4.7.0](https://github.com/sonata-project/SonataAdminBundle/compare/4.6.1...4.7.0) - 2022-01-05
### Added
- [[#7685](https://github.com/sonata-project/SonataAdminBundle/pull/7685)] Support for `symfony/translation-contracts` 3.x ([@jordisala1991](https://github.com/jordisala1991))
Expand Down
2 changes: 1 addition & 1 deletion UPGRADE-4.x.md
@@ -1,7 +1,7 @@
UPGRADE 4.x
===========

UPGRADE FROM 4.x to 4.x
UPGRADE FROM 4.7 to 4.8
=======================

## Admin definitions
Expand Down
4 changes: 2 additions & 2 deletions src/DependencyInjection/Admin/AbstractTaggedAdmin.php
Expand Up @@ -50,7 +50,7 @@ abstract class AbstractTaggedAdmin implements TaggedAdminInterface
/**
* NEXT_MAJOR: Remove this property.
*
* @deprecated since sonata-project/admin-bundle version 4.x use $modelClass instead.
* @deprecated since sonata-project/admin-bundle version 4.8 use $modelClass instead.
*
* The class name managed by the admin class.
*
Expand Down Expand Up @@ -216,7 +216,7 @@ public function __construct(?string $code = null, ?string $class = null, ?string
if (\func_num_args() > 0) {
@trigger_error(
'Setting the code, the model class and the base controller name with the constructor is deprecated'
.' since sonata-project/admin-bundle version 4.x and will not be possible in 5.0 version.'
.' since sonata-project/admin-bundle version 4.8 and will not be possible in 5.0 version.'
.' Use the `code`, `model_class` and `controller` attribute of the `sonata.admin` tag or'
.' the method "setCode()", "setModelClass()" and "setBaseControllerName()" instead.',
\E_USER_DEPRECATED
Expand Down
Expand Up @@ -361,7 +361,7 @@ private function applyDefaults(ContainerBuilder $container, string $serviceId, a
if (null === $modelClass) {
@trigger_error(
'Not setting the "model_class" attribute is deprecated'
.' since sonata-project/admin-bundle 4.x and will throw an error in 5.0.',
.' since sonata-project/admin-bundle 4.8 and will throw an error in 5.0.',
\E_USER_DEPRECATED
);

Expand Down

0 comments on commit 96aec2d

Please sign in to comment.