Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/Resource/AgentCorpusCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use BEAR\RepositoryModule\Annotation\ResourceObjectPool;
use BEAR\Resource\ResourceInterface;
use Koriym\SemanticLogger\LogJson;
use Koriym\SemanticLogger\SemanticLogger;
use Koriym\SemanticLogger\SemanticLoggerInterface;
use MyVendor\BeMart\Be\Reason\Service\ProductCacheInvalidatorInterface;
use MyVendor\BeMart\Injector;
Expand All @@ -22,6 +21,7 @@
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Ray\Di\AbstractModule;
use Ray\Di\Scope;
use ReflectionClass;
use Symfony\Component\Cache\Adapter\AdapterInterface;
use Symfony\Component\Cache\Adapter\ArrayAdapter;
Expand Down Expand Up @@ -92,7 +92,7 @@ protected function configure(): void
{
$this->bind(AdapterInterface::class)->annotatedWith(ResourceObjectPool::class)->toInstance(new ArrayAdapter());
$this->bind(SemanticLoggerInterface::class)->annotatedWith(CacheLog::class)
->toInstance(new SafeSemanticLogger(new SemanticLogger()));
->to(SafeSemanticLogger::class)->in(Scope::SINGLETON);
}
};
$injector = Injector::getOverrideInstance('cli-fake-hal-app', $override);
Expand Down
4 changes: 2 additions & 2 deletions var/loop/verify-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
use BEAR\Sunday\Extension\Transfer\HttpCacheInterface;
use BEAR\Resource\Uri;
use Koriym\SemanticLogger\LogJson;
use Koriym\SemanticLogger\SemanticLogger;
use Koriym\SemanticLogger\SemanticLoggerInterface;
use MyVendor\BeMart\Injector;
use Ray\Di\AbstractModule;
use Ray\Di\Scope;
use Symfony\Component\Cache\Adapter\RedisAdapter;

require dirname(__DIR__, 2) . '/vendor/autoload.php';
Expand Down Expand Up @@ -216,7 +216,7 @@ protected function configure(): void
: new StorageRedisDsnModule($this->dsn));
// Recording on, by replacing the one binding that decides it
$this->bind(SemanticLoggerInterface::class)->annotatedWith(CacheLog::class)
->toInstance(new SafeSemanticLogger(new SemanticLogger()));
->to(SafeSemanticLogger::class)->in(Scope::SINGLETON);

if ($this->cdn) {
// The CDN flavour BeMart would deploy behind, with the purge recorded instead of sent.
Expand Down
Loading