AppserverIo\Appserver\PersistenceContainer\Doctrine\V2\DriverFactories\AnnotationDriverFactory::get PHP Method

get() public static method

Return's the new driver instance.
public static get ( Doctrine\ORM\Configuration $configuration, array $paths = [], array $params = [] ) : Doctrine\Common\Persistence\Mapping\Driver\MappingDriver
$configuration Doctrine\ORM\Configuration The DBAL configuration to create the driver for
$paths array The path to the driver configuration
$params array The additional configuration params
return Doctrine\Common\Persistence\Mapping\Driver\MappingDriver The driver instance
    public static function get(Configuration $configuration, array $paths = array(), array $params = array())
    {
        // query whether or not we want to use the simple annotation reader
        $useSimpleAnnotationReader = false;
        if (isset($params[DriverKeys::USE_SIMPLE_ANNOTATION_READER])) {
            $useSimpleAnnotationReader = $params[DriverKeys::USE_SIMPLE_ANNOTATION_READER];
        }
        // create and return the driver instance
        return $configuration->newDefaultAnnotationDriver($paths, $useSimpleAnnotationReader);
    }
AnnotationDriverFactory