getAnnotationsReader example


    /** * Creates the entity manager for the application. * * @param string $modelPath * * @return AnnotationDriver */
    public function factory(Configuration $config$modelPath)
    {
        $annotationDriver = new AnnotationDriver(
            $config->getAnnotationsReader(),
            [
                $modelPath,
                $config->getAttributeDir(),
            ]
        );

        $config->setMetadataDriverImpl($annotationDriver);

        return $annotationDriver;
    }
}
Home | Imprint | This part of the site doesn't use cookies.