@@ -4,9 +4,9 @@ |
||
| 4 | 4 | namespace GarethEllis\Tldr\Fetcher; |
| 5 | 5 | |
| 6 | 6 | use GarethEllis\Tldr\Fetcher\Exception\PageNotFoundException; |
| 7 | +use GarethEllis\Tldr\Fetcher\Exception\RemoteFetcherException; |
|
| 7 | 8 | use GarethEllis\Tldr\Page\TldrPage; |
| 8 | 9 | use GuzzleHttp\Client; |
| 9 | -use GarethEllis\Tldr\Fetcher\Exception\RemoteFetcherException; |
|
| 10 | 10 | use Metadata\Cache\CacheInterface; |
| 11 | 11 | |
| 12 | 12 | /** |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | * Fetch a page from remote repository |
| 54 | 54 | * |
| 55 | 55 | * @param string $pageName |
| 56 | - * @return string |
|
| 56 | + * @return TldrPage |
|
| 57 | 57 | * @throws PageNotFoundException |
| 58 | 58 | */ |
| 59 | 59 | public function fetchPage(String $pageName): TldrPage |
@@ -6,21 +6,19 @@ |
||
| 6 | 6 | use GarethEllis\Tldr\Cache\StashAdapter; |
| 7 | 7 | use GarethEllis\Tldr\Console\Output\PageOutput; |
| 8 | 8 | use GarethEllis\Tldr\Fetcher\CacheFetcher; |
| 9 | +use GarethEllis\Tldr\Fetcher\Exception\PageNotFoundException; |
|
| 9 | 10 | use GarethEllis\Tldr\Fetcher\Exception\RemoteFetcherException; |
| 10 | 11 | use GarethEllis\Tldr\Fetcher\OperatingSystemTrait; |
| 12 | +use GarethEllis\Tldr\Fetcher\RemoteFetcher; |
|
| 13 | +use GuzzleHttp\Client as Http; |
|
| 11 | 14 | use Stash\Driver\FileSystem; |
| 12 | 15 | use Stash\Pool; |
| 13 | 16 | use Symfony\Component\Console\Command\Command; |
| 14 | 17 | use Symfony\Component\Console\Command\HelpCommand; |
| 15 | -use Symfony\Component\Console\Helper\DescriptorHelper; |
|
| 16 | -use Symfony\Component\Console\Input\ArrayInput; |
|
| 17 | 18 | use Symfony\Component\Console\Input\InputArgument; |
| 18 | 19 | use Symfony\Component\Console\Input\InputInterface; |
| 19 | 20 | use Symfony\Component\Console\Input\InputOption; |
| 20 | 21 | use Symfony\Component\Console\Output\OutputInterface; |
| 21 | -use GarethEllis\Tldr\Fetcher\RemoteFetcher; |
|
| 22 | -use GuzzleHttp\Client as Http; |
|
| 23 | -use GarethEllis\Tldr\Fetcher\Exception\PageNotFoundException; |
|
| 24 | 22 | |
| 25 | 23 | class TldrCommand extends Command |
| 26 | 24 | { |