<?php
namespace Diplix\KMGBundle\Repository;
class PlatformClientRepository extends BasicRepository
{
public function fetch()
{
$all = $this->findBy([]);
if (count($all)!==1)
throw new \UnexpectedValueException('Expecting exactly one platform client configuration !');
return $all[0];
}
}