Skip to content

Commit

Permalink
Deprecate TypeGuesserInterface from Guesser
Browse files Browse the repository at this point in the history
Deprecated in favor of Sonata\AdminBundle\FieldDescription\TypeGuesserInterface.
  • Loading branch information
franmomu authored and VincentLanglet committed Mar 10, 2021
1 parent cbc6e91 commit ff56ac5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions UPGRADE-3.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ $admin->generateObjectUrl('history_compare_revisions', $subject, [
UPGRADE FROM 3.89 to 3.90
=========================

### Deprecated `Sonata\AdminBundle\Guesser\TypeGuesserInterface` interface.

Use `Sonata\AdminBundle\FieldDescription\TypeGuesserInterface` interface instead.

### Deprecated `Sonata\AdminBundle\Guesser\TypeGuesserChain` class.

Use `Sonata\AdminBundle\FieldDescription\TypeGuesserChain` class instead.

### Deprecated `Sonata\AdminBundle\Model\ModelManagerInterface::getModelInstance()` method.

Use `Sonata\AdminBundle\Admin\AbstractAdmin::createNewInstance()` method instead.
Expand Down
5 changes: 5 additions & 0 deletions src/Guesser/TypeGuesserChain.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
/**
* The code is based on Symfony2 Form Components.
*
* NEXT_MAJOR: Remove this class.
*
* @deprecated since sonata-project/admin-bundle 3.x, to be removed in 4.0.
* Use Sonata\AdminBundle\FieldDescription\TypeGuesserChain instead.
*
* @final since sonata-project/admin-bundle 3.52
*
* @author Bernhard Schussek <[email protected]>
Expand Down
5 changes: 5 additions & 0 deletions src/Guesser/TypeGuesserInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
use Symfony\Component\Form\Guess\TypeGuess;

/**
* NEXT_MAJOR: Remove this class.
*
* @deprecated since sonata-project/admin-bundle 3.x, to be removed in 4.0.
* Use Sonata\AdminBundle\FieldDescription\TypeGuesserInterface instead.
*
* @author Thomas Rabaix <[email protected]>
*/
interface TypeGuesserInterface
Expand Down

0 comments on commit ff56ac5

Please sign in to comment.