PHP 8.2.30
Preview: DoctrineOrmExtension.php Size: 906 B
/proc/thread-self/root/opt/cloudlinux/alt-php53/root/usr/share/pear/Symfony/Bridge/Doctrine/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\Common\Persistence\ManagerRegistry;
use Symfony\Component\Form\AbstractExtension;
use Symfony\Component\PropertyAccess\PropertyAccess;

class DoctrineOrmExtension extends AbstractExtension
{
    protected $registry;

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

    protected function loadTypes()
    {
        return array(
            new Type\EntityType($this->registry, PropertyAccess::createPropertyAccessor()),
        );
    }

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

Directory Contents

Dirs: 4 × Files: 2

Name Size Perms Modified Actions
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
Type DIR
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
906 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
5.86 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).