Implement custom parsers/renderers with autowiring for snip content
This commit is contained in:
@ -30,6 +30,9 @@ class Snip
|
||||
#[ORM\ManyToOne]
|
||||
private ?SnipContent $activeVersion = null;
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
private ?string $parser = null;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->snipContents = new ArrayCollection();
|
||||
@ -115,4 +118,16 @@ class Snip
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getParser(): ?string
|
||||
{
|
||||
return $this->parser;
|
||||
}
|
||||
|
||||
public function setParser(string $parser): static
|
||||
{
|
||||
$this->parser = $parser;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user