From c223ab602cbe7f6db7321ba547164971d63d7bcd Mon Sep 17 00:00:00 2001 From: Fbenas Date: Sun, 29 Apr 2018 22:24:25 +0100 Subject: WIP --- src/Script/Console.php | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/Script/Console.php (limited to 'src/Script/Console.php') 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 @@ + + */ +class Console +{ + /** + * Create symfony application and add commands + * + * @author Phil Burton + */ + public function __construct() + { + $this->init(); + } + + /** + * Initalise + * + * @author Phil Burton + */ + protected function init() + { + // Define the root of the application + define('APP_ROOT', realpath(dirname(__FILE__) . '/../../') . '/'); + } + + /** + * Run main application code + * + * @author Phil Burton + */ + public function exec() + { + $vendors = Vendor::loadAll(); + $input = new Input; + + $vendors->filterByInput($input); + // $output = new Output; + // + // $output->printCollection($vendors); + } +} -- cgit v1.2.3