Skip to content

Commit 6634b5b

Browse files
authored
Update static-files.md
Fix class name
1 parent cba4f7b commit 6634b5b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Writerside/topics/integrations/static-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ To return static files from the filesystem, you can use specific
3131
```php
3232
use Boson\Application;
3333
use Boson\ApplicationCreateInfo;
34-
use Boson\Component\Http\Static\FilesystemStaticAdapter;
34+
use Boson\Component\Http\Static\FilesystemStaticProvider;
3535
use Boson\WebView\Api\Schemes\Event\SchemeRequestReceived;
3636

3737
// Create an application
@@ -40,7 +40,7 @@ $app = new Application(new ApplicationCreateInfo(
4040
));
4141

4242
// Create static files adapter
43-
$static = new FilesystemStaticAdapter([__DIR__ . '/public']);
43+
$static = new FilesystemStaticProvider([__DIR__ . '/public']);
4444

4545
$app->on(function (SchemeRequestReceived $e) use ($static): void {
4646
// Lookup static file and create response in

0 commit comments

Comments
 (0)