Ejemplo n.º 1
0
 public function __construct(SyntaxInterface $syntax = null)
 {
     $this->syntax = $syntax ?: new Syntax();
     $this->shortcodeRegex = RegexBuilderUtility::buildShortcodeRegex($this->syntax);
     $this->singleShortcodeRegex = RegexBuilderUtility::buildSingleShortcodeRegex($this->syntax);
     $this->parametersRegex = RegexBuilderUtility::buildParametersRegex($this->syntax);
 }