summaryrefslogtreecommitdiff
path: root/src/IAC.php
blob: 59df2811f07cdf8bd54d0034257b0d9e29057cbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

namespace PHPIAC;

use PHPIAC\Command\RunCommand;
use Symfony\Component\Console\Application;

class IAC
{
    public function __construct()
    {
        $application = new Application();

        $defaultCommand = new RunCommand();
        $application->add($defaultCommand);
        $application->setDefaultCommand($defaultCommand->getName());

        # ... other commands here

        $application->run();
    }
}