Implement creator studio and upload updates

This commit is contained in:
2026-04-04 10:12:02 +02:00
parent 1da7d3bf88
commit 0b216b7ecd
15107 changed files with 31206 additions and 626514 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Providers;
use App\Contracts\Images\SubjectDetectorInterface;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\RateLimiter;
@@ -25,6 +26,10 @@ use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Log;
use Illuminate\Queue\Events\JobFailed;
use App\Services\ReceivedCommentsInboxService;
use App\Services\Images\Detectors\ChainedSubjectDetector;
use App\Services\Images\Detectors\HeuristicSubjectDetector;
use App\Services\Images\Detectors\NullSubjectDetector;
use App\Services\Images\Detectors\VisionSubjectDetector;
use Klevze\ControlPanel\Framework\Core\Menu;
class AppServiceProvider extends ServiceProvider
@@ -55,6 +60,14 @@ class AppServiceProvider extends ServiceProvider
\App\Services\EarlyGrowth\SpotlightEngineInterface::class,
\App\Services\EarlyGrowth\SpotlightEngine::class,
);
$this->app->singleton(SubjectDetectorInterface::class, function ($app) {
return new ChainedSubjectDetector([
$app->make(VisionSubjectDetector::class),
$app->make(HeuristicSubjectDetector::class),
$app->make(NullSubjectDetector::class),
]);
});
}
/**