Alias Illuminate\Support\Debug\HtmlDumper to Symfony's HtmlDumper
This commit is contained in:
parent
6ea06b3d8e
commit
0dee0e54b1
|
|
@ -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,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue