Implement custom parsers/renderers with autowiring for snip content
This commit is contained in:
15
src/Service/SnipParser/ParserInterface.php
Normal file
15
src/Service/SnipParser/ParserInterface.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Service\SnipParser;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;
|
||||
|
||||
#[AutoconfigureTag]
|
||||
interface ParserInterface
|
||||
{
|
||||
public function parseView(string $content): string;
|
||||
|
||||
public function parseRaw(string $content): string;
|
||||
|
||||
public static function getName(): string;
|
||||
}
|
Reference in New Issue
Block a user