mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Optimized for SPA
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repository\Source;
|
||||
|
||||
use Doctrine\ORM\EntityRepository;
|
||||
use App\Entity\Source\SourceInterface;
|
||||
|
||||
final class SourceRepository extends EntityRepository
|
||||
{
|
||||
/**
|
||||
* @param string $slug
|
||||
*
|
||||
* @return SourceInterface|null
|
||||
*/
|
||||
public function findOneBySlug(string $slug): ?SourceInterface
|
||||
{
|
||||
return $this->findOneBy(['slug' => $slug]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user