diff options
author | Fbenas <philbeansburton@gmail.com> | 2018-04-29 22:24:25 +0100 |
---|---|---|
committer | Fbenas <philbeansburton@gmail.com> | 2018-04-29 22:24:25 +0100 |
commit | c223ab602cbe7f6db7321ba547164971d63d7bcd (patch) | |
tree | a4a73aab1d8082b2f96f899fc4d51040fe5ed85e /src/Script/Console.php | |
parent | af0cd60fc5fd2939477dfccd4c0e78892e76d5ba (diff) |
WIP
Diffstat (limited to 'src/Script/Console.php')
-rw-r--r-- | src/Script/Console.php | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/Script/Console.php b/src/Script/Console.php new file mode 100644 index 0000000..bedbc1d --- /dev/null +++ b/src/Script/Console.php @@ -0,0 +1,52 @@ +<?php + +namespace App\Script; + +// use App\Model\Vendor; +use App\Script\Input; +// use App\Script\Output; + +/** + * Main application class + * + * @author Phil Burton <phil@pgburton.com> + */ +class Console +{ + /** + * Create symfony application and add commands + * + * @author Phil Burton <phil@pgburton.com> + */ + public function __construct() + { + $this->init(); + } + + /** + * Initalise + * + * @author Phil Burton <phil@pgburton.com> + */ + protected function init() + { + // Define the root of the application + define('APP_ROOT', realpath(dirname(__FILE__) . '/../../') . '/'); + } + + /** + * Run main application code + * + * @author Phil Burton <phil@pgburton.com> + */ + public function exec() + { + $vendors = Vendor::loadAll(); + $input = new Input; + + $vendors->filterByInput($input); + // $output = new Output; + // + // $output->printCollection($vendors); + } +} |