#!/usr/bin/env php
<?php
// ─────────────────────────────────────────────────────────────
// artisan — CLI di Laravel
//
// Questo file è il punto di accesso ai comandi Laravel da terminale.
// Esempi di utilizzo:
//   php artisan migrate          → esegue le migration
//   php artisan make:controller  → crea un controller
//   php artisan db:seed          → esegue i seeder
//   php artisan route:list       → mostra tutte le route
//   php artisan tinker           → REPL interattivo PHP+Laravel
// ─────────────────────────────────────────────────────────────

use Symfony\Component\Console\Input\ArgvInput;

define('LARAVEL_START', microtime(true));

// Carica l'autoloader di Composer (tutte le dipendenze)
require __DIR__.'/vendor/autoload.php';

// Avvia l'applicazione Laravel e gestisce il comando CLI
$app = require_once __DIR__.'/bootstrap/app.php';

$status = $app->handleCommand(new ArgvInput);

exit($status);
