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