Skip to content

Commit be9daa4

Browse files
authored
Merge pull request #102 from brefphp/fix-service-provider
2 parents c61846e + bac0db3 commit be9daa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BrefServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function register()
3434
return;
3535
}
3636

37-
$this->app[Kernel::class]->pushMiddleware(Http\Middleware\ServeStaticAssets::class);
37+
$this->app->useStoragePath(StorageDirectories::Path);
3838

3939
$this->fixDefaultConfiguration();
4040

@@ -61,7 +61,7 @@ public function register()
6161
*/
6262
public function boot(Dispatcher $dispatcher, LogManager $logManager, FailedJobProviderInterface $queueFailer)
6363
{
64-
$this->app->useStoragePath(StorageDirectories::Path);
64+
$this->app[Kernel::class]->pushMiddleware(Http\Middleware\ServeStaticAssets::class);
6565

6666
if ($this->app->runningInConsole()) {
6767
$this->publishes([

0 commit comments

Comments
 (0)