Sindbad~EG File Manager

Current Path : /opt/nginxhttpd_/vendor/symfony/doctrine-bridge/Form/
Upload File :
Current File : //opt/nginxhttpd_/vendor/symfony/doctrine-bridge/Form/DoctrineOrmExtension.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Bridge\Doctrine\Form;

use Doctrine\Persistence\ManagerRegistry;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractExtension;

class DoctrineOrmExtension extends AbstractExtension
{
    protected $registry;

    public function __construct(ManagerRegistry $registry)
    {
        $this->registry = $registry;
    }

    protected function loadTypes()
    {
        return [
            new EntityType($this->registry),
        ];
    }

    protected function loadTypeGuesser()
    {
        return new DoctrineOrmTypeGuesser($this->registry);
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists