Skip to content

Commit

Permalink
Introduce TypeGuesserInterface
Browse files Browse the repository at this point in the history
This will guess the field description type from its properties.
  • Loading branch information
franmomu committed Feb 16, 2021
1 parent 72adc50 commit 8f3dfb1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/FieldDescription/TypeGuesserInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Sonata\AdminBundle\FieldDescription;

use Sonata\AdminBundle\Admin\FieldDescriptionInterface;
use Symfony\Component\Form\Guess\TypeGuess;

interface TypeGuesserInterface
{
public function guess(FieldDescriptionInterface $fieldDescription): TypeGuess;
}

0 comments on commit 8f3dfb1

Please sign in to comment.