Change snip and tag entities to public columns

This commit is contained in:
Tim
2025-07-24 14:51:55 +02:00
parent 8226ac24d8
commit 074c1d8570
15 changed files with 70 additions and 225 deletions

View File

@@ -29,9 +29,9 @@ readonly class ParserFactory
public function getBySnip(Snip $snip): ParserInterface
{
$parser = $snip->getParser();
$parser = $snip->parser;
if (null === $parser) {
throw new ServiceNotFoundException(sprintf('Unknown parser for snip "%s"', $snip->getParser()));
throw new ServiceNotFoundException(sprintf('Unknown parser for snip "%s"', $snip->parser));
}
return $this->get($parser);
@@ -49,4 +49,4 @@ readonly class ParserFactory
{
foreach ($this->getAll() as $parser) yield $parser::getName();
}
}
}