Documentation ¶
Index ¶
- type Application
- type BasePath
- func (basePath BasePath) BasePath() string
- func (basePath BasePath) BootstrapPath() string
- func (basePath BasePath) ConfigPath() string
- func (basePath BasePath) DatabasePath() string
- func (basePath BasePath) EnvironmentFile() string
- func (basePath BasePath) LangPath() string
- func (basePath BasePath) Path() string
- func (basePath BasePath) PublicPath() string
- func (basePath BasePath) ResourcePath() string
- func (basePath BasePath) StoragePath() string
- type Container
- func (c *Container) Bind(abstract interface{}, concrete interface{})
- func (c *Container) Bound(abstract string) bool
- func (c Container) Copy() Container
- func (c Container) GetBindings() bindings
- func (c *Container) Instance(abstract interface{}, instance interface{})
- func (c *Container) IsAlias(name string) bool
- func (c *Container) Make(abstract interface{}) interface{}
- func (c *Container) Singleton(abstract interface{}, concrete interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { // The service container Container Container // The base path for the Laravel installation. BasePath BasePath // Indicates if the application has been bootstrapped before. HasBeenBootstrapped bool }
func (Application) Make ¶ added in v0.4.0
func (a Application) Make(abstract interface{}) interface{}
func (*Application) SetBasePath ¶ added in v0.2.0
func (a *Application) SetBasePath()
Set the base path for the application.
type BasePath ¶ added in v0.2.0
type BasePath string
func (BasePath) BootstrapPath ¶ added in v0.2.0
Get the path to the bootstrap directory.
func (BasePath) ConfigPath ¶ added in v0.2.0
Get the path to the application configuration files.
func (BasePath) DatabasePath ¶ added in v0.2.0
Get the path to the database directory.
func (BasePath) EnvironmentFile ¶ added in v0.2.0
Get the path to the environment file.
func (BasePath) PublicPath ¶ added in v0.2.0
Get the path to the public / web directory.
func (BasePath) ResourcePath ¶ added in v0.2.0
Get the path to the resources directory.
func (BasePath) StoragePath ¶ added in v0.2.0
Get the path to the storage directory.
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func NewContainer ¶ added in v0.4.0
func NewContainer() Container
func (*Container) Bind ¶ added in v0.4.0
func (c *Container) Bind(abstract interface{}, concrete interface{})
Register a binding with the container.
func (Container) GetBindings ¶ added in v0.4.0
func (c Container) GetBindings() bindings
Get the container's bindings.
func (*Container) Instance ¶ added in v0.4.0
func (c *Container) Instance(abstract interface{}, instance interface{})
Register an existing instance as shared in the container.
Click to show internal directories.
Click to hide internal directories.