protected function createRepository()
 {
     $dbParams = ['driver' => 'pdo_sqlite', 'memory' => true];
     $config = Setup::createConfiguration($devMode = true);
     $prefixes = [realpath(__DIR__ . '/../../../Infrastructure/DoctrineORM/ClientRepository') => 'Akamon\\OAuth2\\Server\\Infrastructure\\DoctrineORM\\ClientRepository'];
     $driver = new SimplifiedXmlDriver($prefixes);
     $driver->setGlobalBasename('mapping');
     $config->setMetadataDriverImpl($driver);
     $em = EntityManager::create($dbParams, $config);
     $schemaTool = new SchemaTool($em);
     $schemaTool->createSchema($em->getMetadataFactory()->getAllMetadata());
     return new \Akamon\OAuth2\Server\Infrastructure\DoctrineORM\ClientRepository\DoctrineORMClientRepository($em);
 }
 /**
  * {@inheritDoc}
  */
 public function getAllClassNames()
 {
     $classNames = parent::getAllClassNames();
     return array_filter($classNames, function ($className) {
         return !isset($this->extendedEntities[$className]);
     });
 }