for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace WMDE\Fundraising\Frontend\BucketTesting;
use Doctrine\Common\Persistence\Mapping\Driver\MappingDriver;
use Doctrine\ORM\Mapping\Driver\XmlDriver;
class BucketTestingContextFactory {
public const ENTITY_NAMESPACE = 'WMDE\Fundraising\Frontend\BucketTesting\Domain\Model';
private const DOCTRINE_CLASS_MAPPING_DIRECTORY = __DIR__ . '/config/DoctrineClassMapping';
public function newMappingDriver(): MappingDriver {
// We're only calling this for the side effect of adding Mapping/Driver/DoctrineAnnotations.php
// to the AnnotationRegistry. When AnnotationRegistry is deprecated with Doctrine Annotations 2.0,
// use $this->annotationReader instead
return new XmlDriver( self::DOCTRINE_CLASS_MAPPING_DIRECTORY );
return new Doctrine\ORM\...LASS_MAPPING_DIRECTORY)
Doctrine\ORM\Mapping\Driver\XmlDriver
Doctrine\Common\Persiste...ng\Driver\MappingDriver
}