Application

Application

interface Application implements Container (View source)

Methods

bool bound(string $abstract)

Determine if the given abstract type has been bound.

from Container
void alias(string $abstract, string $alias)

Alias a type to a different name.

from Container
void tag(array|string $abstracts, array|mixed $tags)

Assign a set of tags to a given binding.

from Container
array tagged(array $tag)

Resolve all of the bindings for a given tag.

from Container
void bind(string|array $abstract, Closure|string|null $concrete = null, bool $shared = false)

Register a binding with the container.

from Container
void bindIf(string $abstract, Closure|string|null $concrete = null, bool $shared = false)

Register a binding if it hasn't already been registered.

from Container
void singleton(string|array $abstract, Closure|string|null $concrete = null)

Register a shared binding in the container.

from Container
void extend(string $abstract, Closure $closure)

"Extend" an abstract type in the container.

from Container
void instance(string $abstract, mixed $instance)

Register an existing instance as shared in the container.

from Container
ContextualBindingBuilder when(string $concrete)

Define a contextual binding.

from Container
mixed make(string $abstract, array $parameters = array())

Resolve the given type from the container.

from Container
mixed call(callable|string $callback, array $parameters = array(), string|null $defaultMethod = null)

Call the given Closure / class@method and inject its dependencies.

from Container
bool resolved(string $abstract)

Determine if the given abstract type has been resolved.

from Container
void resolving(string $abstract, Closure $callback = null)

Register a new resolving callback.

from Container
void afterResolving(string $abstract, Closure $callback = null)

Register a new after resolving callback.

from Container
string version()

Get the version number of the application.

string basePath()

Get the base path of the Laravel installation.

string environment()

Get or check the current application environment.

bool isDownForMaintenance()

Determine if the application is currently down for maintenance.

void registerConfiguredProviders()

Register all of the configured providers.

ServiceProvider register(ServiceProvider|string $provider, array $options = array(), bool $force = false)

Register a service provider with the application.

void registerDeferredProvider(string $provider, string $service = null)

Register a deferred provider and service.

void boot()

Boot the application's service providers.

void booting(mixed $callback)

Register a new boot listener.

void booted(mixed $callback)

Register a new "booted" listener.

string getCachedCompilePath()

Get the path to the cached "compiled.php" file.

string getCachedServicesPath()

Get the path to the cached services.php file.

doc_Laravel
2016-11-02 16:05:23
Comments
Leave a Comment

Please login to continue.