Two factor problems fixed after compose update

This commit is contained in:
2026-07-07 23:18:06 +02:00
parent 97963b34aa
commit dec038fc0d
143 changed files with 11760 additions and 10 deletions

View File

@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace Endroid\QrCode\Builder;
final class BuilderRegistry implements BuilderRegistryInterface
{
/** @var array<BuilderInterface> */
private array $builders = [];
public function set(string $name, BuilderInterface $builder): void
{
$this->builders[$name] = $builder;
}
public function get(string $name): BuilderInterface
{
if (!isset($this->builders[$name])) {
throw new \Exception(sprintf('Builder with name "%s" not available from registry', $name));
}
return $this->builders[$name];
}
}