summaryrefslogtreecommitdiff
path: root/src/Manager/Script/Console.php
blob: 5f5d90d88a473e1cacb9bfbe42245cc760ef3753 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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();
    }
}