Release inicial 1.0.0
This commit is contained in:
31
dev/bootstrap.php
Executable file
31
dev/bootstrap.php
Executable file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
// Cargar el autoload desde el directorio adecuado
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
use Koneko\SatCatalogs\Bootstrap\CustomApplication;
|
||||
use Illuminate\Config\Repository as Config;
|
||||
|
||||
$app = new CustomApplication(
|
||||
dirname(__DIR__) // Directorio raíz del paquete
|
||||
);
|
||||
|
||||
// 🔥 Definir el namespace manualmente para evitar errores
|
||||
$app->instance('config', new Config([
|
||||
'app' => [
|
||||
'name' => 'Koneko SAT Catalogs',
|
||||
'namespace' => 'Koneko\\SatCatalogs\\',
|
||||
],
|
||||
]));
|
||||
|
||||
$app->singleton(
|
||||
Illuminate\Contracts\Console\Kernel::class,
|
||||
Koneko\SatCatalogs\Console\Kernel::class
|
||||
);
|
||||
|
||||
$app->singleton(
|
||||
Illuminate\Contracts\Debug\ExceptionHandler::class,
|
||||
Illuminate\Foundation\Exceptions\Handler::class
|
||||
);
|
||||
|
||||
return $app;
|
Reference in New Issue
Block a user