Resolver
in package
Tag resolution service.
Resolves comma-separated tag names to Tag objects, creating tags that don't exist.
Table of Contents
Properties
Methods
- __construct() : mixed
- resolveFromString() : array<string|int, Tag>
- Resolve comma-separated tag names to Tag objects.
Properties
$_tagCreator
private
Creator
$_tagCreator
$_tagRepository
private
ITagRepository
$_tagRepository
Methods
__construct()
public
__construct(ITagRepository $tagRepository, Creator $tagCreator) : mixed
Parameters
- $tagRepository : ITagRepository
- $tagCreator : Creator
resolveFromString()
Resolve comma-separated tag names to Tag objects.
public
resolveFromString(string $tagNames) : array<string|int, Tag>
Creates tags that don't exist.
Parameters
- $tagNames : string
-
Comma-separated tag names