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

use Klkvsk\DtoGenerator\Console\App;

array_map(
    fn ($file) => !class_exists('Composer\Autoload\ClassLoader')
        && $file && file_exists($file) && require_once $file,
    [
        $GLOBALS['_composer_autoload_path'] ?? null,
        __DIR__ . '/../../../autoload.php',
        __DIR__ . '/../vendor/autoload.php',
    ]
);

(new App())->run();
