Skip to content

Commit

Permalink
Remove old code in DocumenType
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed Dec 14, 2023
1 parent 6030b58 commit a5e2ca6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Form/Type/DocumentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@
use Doctrine\ODM\MongoDB\DocumentManager;
use Doctrine\Persistence\ObjectManager;
use InvalidArgumentException;
use ReturnTypeWillChange;
use Symfony\Bridge\Doctrine\Form\ChoiceList\EntityLoaderInterface;
use Symfony\Bridge\Doctrine\Form\Type\DoctrineType;
use Symfony\Component\OptionsResolver\Options;
use Symfony\Component\OptionsResolver\OptionsResolver;

use function interface_exists;

/**
* Form type for a MongoDB document
*/
Expand Down Expand Up @@ -60,12 +57,8 @@ public function configureOptions(OptionsResolver $resolver): void
$resolver->setAllowedTypes('document_manager', ['null', 'string', DocumentManager::class]);
}

/** @internal Symfony 2.8 compatibility */
#[ReturnTypeWillChange]
public function getBlockPrefix(): string
{
return 'document';
}
}

interface_exists(ObjectManager::class);

0 comments on commit a5e2ca6

Please sign in to comment.