/
var
/
www
/
html
/
restaurants
/
vendor
/
doctrine
/
mongodb-odm-bundle
/
Form
/
Upload File
HOME
<?php declare(strict_types=1); namespace Doctrine\Bundle\MongoDBBundle\Form; use Doctrine\Persistence\ManagerRegistry; use Symfony\Component\Form\AbstractExtension; /** * Form extension. */ class DoctrineMongoDBExtension extends AbstractExtension { /** @var ManagerRegistry */ protected $registry; public function __construct(ManagerRegistry $registry) { $this->registry = $registry; } /** * {@inheritDoc} */ protected function loadTypes() { return [ new Type\DocumentType($this->registry), ]; } /** * {@inheritDoc} */ protected function loadTypeGuesser() { return new DoctrineMongoDBTypeGuesser($this->registry); } }