class ModelAnnotation{ /**
* 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;
}}