summaryrefslogtreecommitdiff
path: root/src/Client/Script/Console.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Client/Script/Console.php')
-rw-r--r--src/Client/Script/Console.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Client/Script/Console.php b/src/Client/Script/Console.php
new file mode 100644
index 0000000..5f5d90d
--- /dev/null
+++ b/src/Client/Script/Console.php
@@ -0,0 +1,24 @@
+<?php
+
+namespace App\Script;
+
+use Symfony\Component\Console\Application;
+use App\Script\Command\Site\Create;
+
+/**
+ * Main application class
+ */
+class Console
+{
+ /**
+ * Create symfony application and add commands
+ *
+ * @author Phil Burton <phil@pgburton.com>
+ */
+ public function __construct()
+ {
+ $application = new Application();
+ $application->add(new Create());
+ $application->run();
+ }
+}