We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 650bd24 commit fab35bbCopy full SHA for fab35bb
1 file changed
src/TextProcessingServiceProvider.php
@@ -4,6 +4,7 @@
4
5
namespace Inboxly\TextProcessing;
6
7
+use HTMLPurifier;
8
use Illuminate\Contracts\Support\DeferrableProvider;
9
use Illuminate\Support\ServiceProvider;
10
use Inboxly\TextProcessing\Handlers\Limit;
@@ -24,13 +25,15 @@ class TextProcessingServiceProvider extends ServiceProvider implements Deferrabl
24
25
SanitizeHtml::class,
26
Trim::class,
27
];
28
+
29
/**
30
* Register any application services.
31
*
32
* @return void
33
*/
- public function register()
34
+ public function register(): void
35
{
36
+ $this->app->singleton(HTMLPurifier::class);
37
$this->app->singleton(Processor::class);
38
39
foreach ($this->handlers as $handler) {
0 commit comments