Skip to content

Commit 773aaa9

Browse files
authored
Merge pull request #330 from dahnte/patch-1
Fixed typo Pdfiew in README.md
2 parents d96f0a1 + 43e06e2 commit 773aaa9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Configure::write('CakePdf', [
110110
```
111111

112112
```php
113-
use CakePdf\View\Pdfiew;
113+
use CakePdf\View\PdfView;
114114

115115
class InvoicesController extends AppController
116116
{
@@ -130,15 +130,15 @@ class InvoicesController extends AppController
130130
}
131131

132132
/**
133-
* Add Pdfiew::class to this $viewClasses property so that CakePHP automatically
133+
* Add PdfView::class to this $viewClasses property so that CakePHP automatically
134134
* switches the view class for URLs ending with `.pdf` or with appropriate `Accept` header.
135135
*
136136
* @see https://book.cakephp.org/5/en/controllers.html#content-type-negotiation
137137
* @var array<string>
138138
*/
139139
public function viewClasses(): array
140140
{
141-
return $this->viewClasses[] = Pdfiew::class;
141+
return $this->viewClasses[] = PdfView::class;
142142
}
143143
}
144144
```

0 commit comments

Comments
 (0)