summaryrefslogtreecommitdiff
path: root/vendor/symfony/string/Slugger/SluggerInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/string/Slugger/SluggerInterface.php')
-rw-r--r--vendor/symfony/string/Slugger/SluggerInterface.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/vendor/symfony/string/Slugger/SluggerInterface.php b/vendor/symfony/string/Slugger/SluggerInterface.php
new file mode 100644
index 0000000..dd0d581
--- /dev/null
+++ b/vendor/symfony/string/Slugger/SluggerInterface.php
@@ -0,0 +1,27 @@
1<?php
2
3/*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace Symfony\Component\String\Slugger;
13
14use Symfony\Component\String\AbstractUnicodeString;
15
16/**
17 * Creates a URL-friendly slug from a given string.
18 *
19 * @author Titouan Galopin <galopintitouan@gmail.com>
20 */
21interface SluggerInterface
22{
23 /**
24 * Creates a slug for the given string and locale, using appropriate transliteration when needed.
25 */
26 public function slug(string $string, string $separator = '-', ?string $locale = null): AbstractUnicodeString;
27}