This commit is contained in:
16
docs/snippets/php/plugins/clear_plugins.md
Normal file
16
docs/snippets/php/plugins/clear_plugins.md
Normal file
@@ -0,0 +1,16 @@
|
||||
```php title="PHP"
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
use Kreuzberg\Kreuzberg;
|
||||
|
||||
// Clear all registered OCR backends
|
||||
Kreuzberg::clearOcrBackends();
|
||||
|
||||
// Clear all registered post-processors
|
||||
Kreuzberg::clearPostProcessors();
|
||||
|
||||
// Clear all registered validators
|
||||
Kreuzberg::clearValidators();
|
||||
|
||||
echo "All plugins cleared\n";
|
||||
```
|
||||
Reference in New Issue
Block a user