ApiKeyAuthenticator, PermissionVoter and UserProvider implement Symfony Security for the API (Bearer token) and admin (session) flows. Domain repository interfaces added for ApiKey, User, AIPipelineJob and Invoice; Doctrine implementations provided. Also adds DatabaseLogHandler for structured DB logging, SerpApiWebSearch, and the LogEntry domain entity. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
17 lines
357 B
PHP
17 lines
357 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Domain\Order\Repository;
|
|
|
|
use App\Domain\Order\Invoice;
|
|
use Symfony\Component\Uid\Uuid;
|
|
|
|
interface InvoiceRepositoryInterface
|
|
{
|
|
public function findById(Uuid $id): ?Invoice;
|
|
|
|
public function findByFrappeInvoiceId(string $frappeInvoiceId): ?Invoice;
|
|
|
|
public function save(Invoice $invoice): void;
|
|
}
|