mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 00:01:21 +00:00
Use Laravel Pipeline for categorization
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
|
||||
namespace App\Services\Categorization;
|
||||
|
||||
use App\Models\Category;
|
||||
use App\Services\Categorization\Pipes\AbstractCategorizationPipe;
|
||||
|
||||
/**
|
||||
* Categorization service using the new pipeline-based system.
|
||||
* Categorization service using Laravel Pipeline.
|
||||
*
|
||||
* This class is a drop-in replacement for the legacy Blacklight\Categorize
|
||||
* with additional features like confidence scoring and debug information.
|
||||
@@ -70,11 +70,11 @@ class CategorizationService
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a custom categorizer to the pipeline.
|
||||
* Add a custom categorizer pipe to the pipeline.
|
||||
*/
|
||||
public function addCategorizer(Contracts\CategorizerInterface $categorizer): self
|
||||
public function addCategorizer(AbstractCategorizationPipe $pipe): self
|
||||
{
|
||||
$this->pipeline->addCategorizer($categorizer);
|
||||
$this->pipeline->addCategorizer($pipe);
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user