@@ -47,13 +47,11 @@ type AboutItem struct {
4747type Application interface {
4848 // About add information to the application's about command.
4949 About (section string , items []AboutItem )
50- // AddServiceProviders manually sets the list of configured providers.
51- AddServiceProviders (providers []ServiceProvider )
5250 // Boot register and bootstrap configured service providers.
5351 // It can be deprecated in the future given the With* functions are implemented.
5452 Boot ()
55- // BootServiceProviders boots registered service providers .
56- BootServiceProviders ()
53+ // Build creates a new application instance after configuring .
54+ Build () Application
5755 // Commands register the given commands with the console application.
5856 Commands ([]console.Command )
5957 // Context gets the application context.
@@ -67,22 +65,22 @@ type Application interface {
6765 Json () Json
6866 // Publishes register the given paths to be published by the "vendor:publish" command.
6967 Publishes (packageName string , paths map [string ]string , groups ... string )
70- // Refresh all modules after changing config, will call the Boot method simultaneously .
68+ // Refresh reboots facades after changing config, if you want to restart the runners as well, please use the Restart method .
7169 Refresh ()
72- // RegisterServiceProviders registers configured service providers .
73- RegisterServiceProviders ()
74- // Start starts modules .
75- Start ( runners ... Runner ) Application
70+ // Restart restarts the application .
71+ Restart () error
72+ // SetBuilder sets the application builder .
73+ SetBuilder ( builder ApplicationBuilder ) Application
7674 // SetJson set the JSON implementation.
7775 SetJson (json Json )
7876 // SetLocale set the current application locale.
7977 SetLocale (ctx context.Context , locale string ) context.Context
8078 // Shutdown the application and all its runners.
81- Shutdown ()
79+ Shutdown () error
80+ // Start starts modules.
81+ Start ()
8282 // Version gets the version number of the application.
8383 Version () string
84- // Wait for all modules to shutdown.
85- Wait ()
8684
8785 // Paths
8886
0 commit comments