foundation

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) BasePath added in v0.2.0

func (basePath BasePath) BasePath() string

Get the base path of the Laravel installation.

func (BasePath) BootstrapPath added in v0.2.0

func (basePath BasePath) BootstrapPath() string

Get the path to the bootstrap directory.

func (BasePath) ConfigPath added in v0.2.0

func (basePath BasePath) ConfigPath() string

Get the path to the application configuration files.

func (BasePath) DatabasePath added in v0.2.0

func (basePath BasePath) DatabasePath() string

Get the path to the database directory.

func (BasePath) EnvironmentFile added in v0.2.0

func (basePath BasePath) EnvironmentFile() string

Get the path to the environment file.

func (BasePath) LangPath added in v0.2.0

func (basePath BasePath) LangPath() string

Get the path to the language files.

func (BasePath) Path added in v0.2.0

func (basePath BasePath) Path() string

Get the path to the application "app" directory.

func (BasePath) PublicPath added in v0.2.0

func (basePath BasePath) PublicPath() string

Get the path to the public / web directory.

func (BasePath) ResourcePath added in v0.2.0

func (basePath BasePath) ResourcePath() string

Get the path to the resources directory.

func (BasePath) StoragePath added in v0.2.0

func (basePath BasePath) StoragePath() string

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) Bound added in v0.4.0

func (c *Container) Bound(abstract string) bool

Determine if the given abstract type has been bound.

func (Container) Copy added in v0.5.0

func (c Container) Copy() 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.

func (*Container) IsAlias added in v0.4.0

func (c *Container) IsAlias(name string) bool

Determine if a given string is an alias.

func (*Container) Make added in v0.4.0

func (c *Container) Make(abstract interface{}) interface{}

Resolve the given type from the container.

func (*Container) Singleton added in v0.4.0

func (c *Container) Singleton(abstract interface{}, concrete interface{})

Register a shared binding in the container.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL