@@ -2,18 +2,17 @@ |
||
2 | 2 | |
3 | 3 | namespace GarethEllis\Tldr\Console\Command; |
4 | 4 | |
5 | +use GarethEllis\Tldr\Cache\StashReader; |
|
5 | 6 | use GarethEllis\Tldr\Fetcher\CacheFetcher; |
7 | +use GarethEllis\Tldr\Fetcher\Exception\PageNotFoundException; |
|
8 | +use GarethEllis\Tldr\Fetcher\RemoteFetcher; |
|
9 | +use GuzzleHttp\Client as Http; |
|
6 | 10 | use GuzzleHttp\Exception\ClientException; |
7 | 11 | use GuzzleHttp\Exception\RequestException; |
8 | 12 | use Symfony\Component\Console\Command\Command; |
9 | 13 | use Symfony\Component\Console\Input\InputArgument; |
10 | 14 | use Symfony\Component\Console\Input\InputInterface; |
11 | -use Symfony\Component\Console\Input\InputOption; |
|
12 | 15 | use Symfony\Component\Console\Output\OutputInterface; |
13 | -use GarethEllis\Tldr\Fetcher\RemoteFetcher; |
|
14 | -use GuzzleHttp\Client as Http; |
|
15 | -use GarethEllis\Tldr\Fetcher\Exception\PageNotFoundException; |
|
16 | -use GarethEllis\Tldr\Cache\StashReader; |
|
17 | 16 | |
18 | 17 | class TldrCommand extends Command |
19 | 18 | { |
@@ -49,8 +49,7 @@ |
||
49 | 49 | /** |
50 | 50 | * Fetch a page from remote repository |
51 | 51 | * |
52 | - * @param string $page |
|
53 | - * @return string |
|
52 | + * @return TldrPage |
|
54 | 53 | * @throws PageNotFoundException |
55 | 54 | */ |
56 | 55 | public function fetchPage(String $pageName): TldrPage |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace GarethEllis\Tldr\Fetcher; |
4 | 4 | |
5 | +use GarethEllis\Tldr\Cache\CacheWriterInterface; |
|
5 | 6 | use GarethEllis\Tldr\Fetcher\Exception\PageNotFoundException; |
6 | 7 | use GarethEllis\Tldr\Page\TldrPage; |
7 | 8 | use GuzzleHttp\Client; |
8 | -use GarethEllis\Tldr\Cache\CacheWriterInterface; |
|
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Class RemoteFetcher |