summaryrefslogtreecommitdiff
path: root/src/IAC.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/IAC.php')
-rw-r--r--src/IAC.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/IAC.php b/src/IAC.php
new file mode 100644
index 0000000..c4e476d
--- /dev/null
+++ b/src/IAC.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace PHPIAC;
+
+use PetrKnap\Php\Singleton\SingletonTrait;
+use PHPIAC\Command\RunCommand;
+use Symfony\Component\Console\Application;
+
+class IAC
+{
+ use SingletonTrait;
+
+ public function __construct()
+ {
+ $application = new Application();
+
+ $defaultCommand = new RunCommand();
+ $application->add($defaultCommand);
+ $application->setDefaultCommand($defaultCommand->getName());
+
+ # ... other commands here
+
+ $application->run();
+ }
+}