File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace CodeOfDigital \LaravelUrlShortener \Facades ;
4+
5+ use GuzzleHttp \Promise \PromiseInterface ;
6+ use Illuminate \Support \Facades \Facade ;
7+
8+ /**
9+ * @method static string shorten($url, array $options = [])
10+ * @method static PromiseInterface shortenAsync($url, array $options = [])
11+ *
12+ * @see \CodeOfDigital\LaravelUrlShortener\UrlShortener
13+ */
14+ class UrlShortener extends Facade
15+ {
16+ /**
17+ * Get the registered name of the component.
18+ *
19+ * @return string
20+ *
21+ * @throws \RuntimeException
22+ */
23+ protected static function getFacadeAccessor ()
24+ {
25+ return 'url.shortener ' ;
26+ }
27+ }
Original file line number Diff line number Diff line change 66use CodeOfDigital \LaravelUrlShortener \Drivers \BitLyDriverShortener ;
77use CodeOfDigital \LaravelUrlShortener \Drivers \TinyUrlDriverShortener ;
88use GuzzleHttp \ClientInterface ;
9+ use GuzzleHttp \Promise \PromiseInterface ;
910use http \Exception \InvalidArgumentException ;
1011use Illuminate \Foundation \Application ;
1112use Illuminate \Support \Arr ;
1213use Illuminate \Support \Str ;
1314
15+ /**
16+ * @method string shorten($url, array $options = [])
17+ * @method PromiseInterface shortenAsync($url, array $options = [])
18+ */
1419class UrlShortener implements UrlFactory
1520{
1621 protected $ app ;
You can’t perform that action at this time.
0 commit comments