Alias Illuminate\Support\Debug\HtmlDumper to Symfony's HtmlDumper

This commit is contained in:
Ben Thomson 2020-07-20 10:40:50 +08:00
parent 6ea06b3d8e
commit 0dee0e54b1
No known key found for this signature in database
GPG Key ID: 8BDB18DD0909BE22
2 changed files with 11 additions and 0 deletions

View File

@ -66,4 +66,6 @@ return [
*/
// Input facade was removed in Laravel 6 - we are keeping it in the Rain library for backwards compatibility.
'Illuminate\Support\Facades\Input' => October\Rain\Support\Facades\Input::class,
// Illuminate's HtmlDumper was "dumped" in Laravel 6 - we'll route this to Symfony's HtmlDumper as Laravel have done.
'Illuminate\Support\Debug\HtmlDumper' => Symfony\Component\VarDumper\Dumper\HtmlDumper::class,
];

View File

@ -10,4 +10,13 @@ class AliasesTest extends PluginTestCase
new \Illuminate\Support\Facades\Input()
);
}
public function testHtmlDumperAlias()
{
$this->assertTrue(class_exists('Illuminate\Support\Debug\HtmlDumper'));
$this->assertInstanceOf(
\Symfony\Component\VarDumper\Dumper\HtmlDumper::class,
new \Illuminate\Support\Debug\HtmlDumper()
);
}
}