File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55namespace Yard \Nutshell ;
66
77use Roots \Acorn \Application ;
8+ use Roots \Acorn \Configuration \ApplicationBuilder ;
89use Roots \Acorn \Configuration \Exceptions ;
910use Roots \Acorn \Configuration \Middleware ;
1011use Sentry \Laravel \Integration ;
1112use Spatie \Csp \AddCspHeaders ;
1213
13- function bootloader (): Application
14+ function bootloader (? string $ basePath = null ): ApplicationBuilder
1415{
15- $ application = Application::configure ()
16+ return Application::configure ($ basePath )
1617 ->withBindings ([
1718 \Roots \Acorn \Bootstrap \LoadConfiguration::class => \Yard \Nutshell \Bootstrap \LoadConfiguration::class,
1819 \Roots \Acorn \Console \Kernel::class => \Yard \Nutshell \Console \Kernel::class,
@@ -25,9 +26,5 @@ function bootloader(): Application
2526 ->withMiddleware (function (Middleware $ middleware ) {
2627 $ middleware ->append (AddCspHeaders::class);
2728 })
28- ->withRouting (wordpress: true )
29- ->boot ()
30- ->usePublicPath (get_theme_file_path ('public ' ));
31-
32- return $ application ;
29+ ->withRouting (wordpress: true );
3330}
You can’t perform that action at this time.
0 commit comments