diff options
author | Fbenas <philbeansburton@gmail.com> | 2018-05-07 15:24:00 +0100 |
---|---|---|
committer | Fbenas <philbeansburton@gmail.com> | 2018-05-07 15:24:00 +0100 |
commit | 19564c9e18ae456e39bc2c8a306f9e79dd619e11 (patch) | |
tree | bcaa30f4cdc273bd55af7948ed252bda3b4b8412 /src/Script/Console.php | |
parent | 8350b6bd36d3a4bb3a99dfbf67e746f4f815927c (diff) |
Docblock and fix toString functions
Diffstat (limited to 'src/Script/Console.php')
-rw-r--r-- | src/Script/Console.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Script/Console.php b/src/Script/Console.php index 3228750..ee8114e 100644 --- a/src/Script/Console.php +++ b/src/Script/Console.php @@ -46,12 +46,14 @@ class Console public function exec() { $output = new Output; + try { $input = new Input; + // Get vendor data $vendors = Vendor::loadAll($input->getOption('f')); - + // Filter data $vendors->filterByInput($input); - + // Output data $output->printCollection($vendors); } catch (Exception $e) { $output->printException($e); |