diff --git a/readme.md b/readme.md
index 3a6dcf2..259dbdf 100644
--- a/readme.md
+++ b/readme.md
@@ -42,7 +42,7 @@ You can create a new DOMPDF instance and load a HTML string, file or view name.
Or use the facade:
```php
- use Barryvdh\DomPDF\Facade\Pdf;
+ use PDF;
$pdf = PDF::loadView('pdf.invoice', $data);
return $pdf->download('invoice.pdf');
diff --git a/src/Facade.php b/src/Facade.php
deleted file mode 100644
index f1acd8a..0000000
--- a/src/Facade.php
+++ /dev/null
@@ -1,12 +0,0 @@
-assertEquals('attachment; filename="test.pdf"', $response->headers->get('Content-Disposition'));
}
- public function testDeprecatedFacade(): void
- {
- $pdf = Facade::loadHtml('
Test
');
- /** @var Response $response */
- $response = $pdf->download('test.pdf');
-
- $this->assertInstanceOf(Response::class, $response);
- $this->assertNotEmpty($response->getContent());
- $this->assertEquals('application/pdf', $response->headers->get('Content-Type'));
- $this->assertEquals('attachment; filename="test.pdf"', $response->headers->get('Content-Disposition'));
- }
-
public function testDownload(): void
{
- $pdf = Facade::loadHtml('Test
');
+ $pdf = Facade\Pdf::loadHtml('Test
');
/** @var Response $response */
$response = $pdf->download('test.pdf');
@@ -57,7 +45,7 @@ public function testDownload(): void
public function testStream(): void
{
- $pdf = Facade::loadHtml('Test
');
+ $pdf = Facade\Pdf::loadHtml('Test
');
/** @var Response $response */
$response = $pdf->stream('test.pdf');
@@ -69,7 +57,7 @@ public function testStream(): void
public function testView(): void
{
- $pdf = Facade::loadView('test');
+ $pdf = Facade\Pdf::loadView('test');
/** @var Response $response */
$response = $pdf->download('test.pdf');
@@ -81,7 +69,7 @@ public function testView(): void
public function testMagicMethods(): void
{
- $pdf = Facade::setBaseHost('host')->setProtocol('protocol')
+ $pdf = Facade\Pdf::setBaseHost('host')->setProtocol('protocol')
->loadView('test')->setOption(['temp_dir' => 'test_dir'])
->setHttpContext(['ssl' => []]);
/** @var Response $response */