| 1 | <?php |
||
| 22 | final class TaxonSlugGenerator implements TaxonSlugGeneratorInterface |
||
| 23 | { |
||
| 24 | const SLUG_SEPARATOR = '/'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var TaxonRepositoryInterface |
||
| 28 | */ |
||
| 29 | private $taxonRepository; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param TaxonRepositoryInterface $taxonRepository |
||
| 33 | */ |
||
| 34 | public function __construct(TaxonRepositoryInterface $taxonRepository) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | public function generate($name, $parentId = null) |
||
| 55 | } |
||
| 56 |