1 | <?php |
||
27 | class CatCommandHandler |
||
28 | { |
||
29 | /** |
||
30 | * @var ResourceRepository |
||
31 | */ |
||
32 | private $repo; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | private $currentPath = '/'; |
||
38 | |||
39 | /** |
||
40 | * Creates the handler. |
||
41 | * |
||
42 | * @param ResourceRepository $repo The resource repository. |
||
43 | */ |
||
44 | 3 | public function __construct(ResourceRepository $repo) |
|
48 | |||
49 | /** |
||
50 | * Handles the "ls" command. |
||
51 | * |
||
52 | * @param Args $args The console arguments. |
||
53 | * @param IO $io The I/O. |
||
54 | * |
||
55 | * @return int The status code. |
||
56 | */ |
||
57 | 3 | public function handle(Args $args, IO $io) |
|
77 | } |
||
78 |