mirror of
https://github.com/flarum/core.git
synced 2025-10-12 15:34:26 +02:00
Instantiate DispatchRoute manually
Since we are already providing the first and only argument manually, we might as well instantiate the object manually. Same effect, same coupling, less code.
This commit is contained in:
@@ -40,10 +40,7 @@ class Installer implements AppInterface
|
||||
$pipe->pipe($this->laravel->make(HandleErrorsWithWhoops::class));
|
||||
$pipe->pipe($this->laravel->make(StartSession::class));
|
||||
$pipe->pipe(
|
||||
$this->laravel->make(
|
||||
DispatchRoute::class,
|
||||
['routes' => $this->laravel->make('flarum.install.routes')]
|
||||
)
|
||||
new DispatchRoute($this->laravel->make('flarum.install.routes'))
|
||||
);
|
||||
|
||||
return $pipe;
|
||||
|
Reference in New Issue
Block a user