<?php /** @var \Gadith\Container\ServiceContainer $container */ $container->singleton(\Gadith\Controllers\Api\AdminApiAuthController::class, function ($c) { return new \Gadith\Controllers\Api\AdminApiAuthController( $c->get(\Gadith\Services\Auth\AuthService::class), $c->get(\Gadith\Services\Governance\SuperAdminResolver::class), \Gadith\Database\Database::getConnection() ); }); $container->singleton(\Gadith\Controllers\Api\AdminStoreApiController::class, function ($c) { return new \Gadith\Controllers\Api\AdminStoreApiController( \Gadith\Database\Database::getConnection(), $c->get(\Gadith\Services\Media\MediaService::class) ); }); $container->singleton(\Gadith\Controllers\Api\AdminDashboardApiController::class, function () { return new \Gadith\Controllers\Api\AdminDashboardApiController( \Gadith\Database\Database::getConnection() ); });
Fatal error: Uncaught ErrorException: Cannot modify header information - headers already sent by (output started at /var/www/html/bootstrap/admin_api_bindings.php:1) in /var/www/html/src/Http/Responses/JsonResponse.php:35 Stack trace: #0 [internal function]: Gadith\Core\ErrorHandler->handleError(2, 'Cannot modify h...', '/var/www/html/s...', 35) #1 /var/www/html/src/Http/Responses/JsonResponse.php(35): header('Content-Type: a...') #2 /var/www/html/src/Core/ErrorHandler.php(58): Gadith\Http\Responses\JsonResponse->send() #3 [internal function]: Gadith\Core\ErrorHandler->handleException(Object(ErrorException)) #4 {main} thrown in /var/www/html/src/Http/Responses/JsonResponse.php on line 35