#!/usr/bin/env php
<?php

require __DIR__.'/../vendor/autoload.php';

use Graze\Morphism\Console\Command\DiffCommand;
use Graze\Morphism\Console\Command\DumpCommand;
use Graze\Morphism\Console\Command\ExtractCommand;
use Graze\Morphism\Console\Command\LintCommand;
use Symfony\Component\Console\Application;
use Symfony\Component\EventDispatcher\EventDispatcher;

$dispatcher = new EventDispatcher();

$application = new Application();
$application->add(new DiffCommand($dispatcher));
$application->add(new LintCommand());
$application->add(new DumpCommand());
$application->add(new ExtractCommand());
$application->run();
