github.com/goravel/framework@v1.13.9/contracts/foundation/application.go (about)

     1  package foundation
     2  
     3  import (
     4  	"github.com/goravel/framework/contracts/console"
     5  )
     6  
     7  //go:generate mockery --name=Application
     8  type Application interface {
     9  	Container
    10  	// Boot register and bootstrap configured service providers.
    11  	Boot()
    12  	// Commands register the given commands with the console application.
    13  	Commands([]console.Command)
    14  	// Path gets the path respective to "app" directory.
    15  	Path(path string) string
    16  	// BasePath get the base path of the Goravel installation.
    17  	BasePath(path string) string
    18  	// ConfigPath get the path to the configuration files.
    19  	ConfigPath(path string) string
    20  	// DatabasePath get the path to the database directory.
    21  	DatabasePath(path string) string
    22  	// StoragePath get the path to the storage directory.
    23  	StoragePath(path string) string
    24  	// PublicPath get the path to the public directory.
    25  	PublicPath(path string) string
    26  	// Publishes register the given paths to be published by the "vendor:publish" command.
    27  	Publishes(packageName string, paths map[string]string, groups ...string)
    28  }