diff options
author | Daniel Weipert <code@drogueronin.de> | 2021-04-18 15:09:51 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2021-04-18 15:09:51 +0200 |
commit | c0ebe78089121c0ad23efb0af32c435bee543a3c (patch) | |
tree | db5e9205bcd7181cfa41543ee8962e9d84cdb481 /src/IAC.php |
Initial commit
Diffstat (limited to 'src/IAC.php')
-rw-r--r-- | src/IAC.php | 25 |
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(); + } +} |