Change snip and tag entities to public columns
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user