mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 23:01:29 +00:00
34 lines
722 B
PHP
34 lines
722 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Services\Categorization\CategorizationPipeline;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class CategorizationServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
// Register the pipeline as a singleton
|
|
$this->app->singleton(CategorizationPipeline::class, function ($app) {
|
|
return CategorizationPipeline::createDefault();
|
|
});
|
|
|
|
// Alias for easier access
|
|
$this->app->alias(CategorizationPipeline::class, 'categorization');
|
|
}
|
|
|
|
/**
|
|
* Bootstrap services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
//
|
|
}
|
|
}
|