summaryrefslogtreecommitdiff
path: root/src/Script/Console.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Script/Console.php')
-rw-r--r--src/Script/Console.php52
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);
+ }
+}