October\Rain\Foundation\Application

Source: ~/vendor/october/rain/src/Foundation/Application.php

Extends:

  • Illuminate\Foundation\Application
  • Illuminate\Container\Container

Implements:

  • Symfony\Component\HttpKernel\HttpKernelInterface
  • Illuminate\Contracts\Foundation\Application
  • ArrayAccess
  • Illuminate\Contracts\Container\Container
  • Psr\Container\ContainerInterface

Public properties

There are no public properties in the class.

Show inherited public properties

Inherited public properties

  • public array $contextual - defined in Illuminate\Container\Container. The contextual binding map.

Protected properties

protected string $pluginsPath

The base path for plugins.

protected string $themesPath

The base path for themes.

protected string $executionContext

The request execution context (front-end, back-end)

Show inherited protected properties

Inherited protected properties

  • protected string $basePath - defined in Illuminate\Foundation\Application. The base path for the Laravel installation.
  • protected bool $hasBeenBootstrapped - defined in Illuminate\Foundation\Application. Indicates if the application has been bootstrapped before.
  • protected bool $booted - defined in Illuminate\Foundation\Application. Indicates if the application has "booted".
  • protected array $bootingCallbacks - defined in Illuminate\Foundation\Application. The array of booting callbacks.
  • protected array $bootedCallbacks - defined in Illuminate\Foundation\Application. The array of booted callbacks.
  • protected array $terminatingCallbacks - defined in Illuminate\Foundation\Application. The array of terminating callbacks.
  • protected array $serviceProviders - defined in Illuminate\Foundation\Application. All of the registered service providers.
  • protected array $loadedProviders - defined in Illuminate\Foundation\Application. The names of the loaded service providers.
  • protected array $deferredServices - defined in Illuminate\Foundation\Application. The deferred services and their providers.
  • protected callable|null $monologConfigurator - defined in Illuminate\Foundation\Application. A custom callback used to configure Monolog.
  • protected string $databasePath - defined in Illuminate\Foundation\Application. The custom database path defined by the developer.
  • protected string $storagePath - defined in Illuminate\Foundation\Application. The custom storage path defined by the developer.
  • protected string $environmentPath - defined in Illuminate\Foundation\Application. The custom environment path defined by the developer.
  • protected string $environmentFile - defined in Illuminate\Foundation\Application. The environment file to load during bootstrapping.
  • protected string $namespace - defined in Illuminate\Foundation\Application. The application namespace.
  • protected static static $instance - defined in Illuminate\Container\Container. The current globally available container (if any).
  • protected array $resolved - defined in Illuminate\Container\Container. An array of the types that have been resolved.
  • protected array $bindings - defined in Illuminate\Container\Container. The container's bindings.
  • protected array $methodBindings - defined in Illuminate\Container\Container. The container's method bindings.
  • protected array $instances - defined in Illuminate\Container\Container. The container's shared instances.
  • protected array $aliases - defined in Illuminate\Container\Container. The registered type aliases.
  • protected array $abstractAliases - defined in Illuminate\Container\Container. The registered aliases keyed by the abstract name.
  • protected array $extenders - defined in Illuminate\Container\Container. The extension closures for services.
  • protected array $tags - defined in Illuminate\Container\Container. All of the registered tags.
  • protected array $buildStack - defined in Illuminate\Container\Container. The stack of concretions currently being built.
  • protected array $with - defined in Illuminate\Container\Container. The parameter override stack.
  • protected array $reboundCallbacks - defined in Illuminate\Container\Container. All of the registered rebound callbacks.
  • protected array $globalResolvingCallbacks - defined in Illuminate\Container\Container. All of the global resolving callbacks.
  • protected array $globalAfterResolvingCallbacks - defined in Illuminate\Container\Container. All of the global after resolving callbacks.
  • protected array $resolvingCallbacks - defined in Illuminate\Container\Container. All of the resolving callbacks by class type.
  • protected array $afterResolvingCallbacks - defined in Illuminate\Container\Container. All of the after resolving callbacks by class type.

Public methods

public void after(Closure|string $callback)

Register an "after" application filter.

Parameters
  • Closure|string $callback

public void before(Closure|string $callback)

Register a "before" application filter.

Parameters
  • Closure|string $callback

public void error(Closure $callback)

Register an application error handler.

Parameters
  • Closure $callback

public void fatal(Closure $callback)

Register an error handler for fatal errors.

Parameters
  • Closure $callback

public string getCachedClassesPath()

Get the path to the cached packages.php file.

public string getCachedCompilePath()

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

public string getCachedConfigPath()

Get the path to the configuration cache file.

public string getCachedPackagesPath()

Get the path to the cached packages.php file.

public string getCachedRoutesPath()

Get the path to the routes cache file.

public string getCachedServicesPath()

Get the path to the cached services.json file.

public boolean hasDatabase()

Returns true if a database connection is present.

public string langPath()

Get the path to the language files.

public mixed make(string $abstract, $parameters=array())

Resolve the given type from the container.

(Overriding Container::make)

Parameters
  • string $abstract
  • $parameters

public string pluginsPath()

Get the path to the public / web directory.

public string publicPath()

Get the path to the public / web directory.

public void registerCoreContainerAliases()

Register the core class aliases in the container.

public bool runningInBackend()

Determine if we are running in the back-end area.

public void setExecutionContext(string $context)

Sets the execution context

Parameters
  • string $context

public void setLocale(string $locale)

Set the current application locale.

Parameters
  • string $locale

public $this setPluginsPath(string $path)

Set the plugins path for the application.

Parameters
  • string $path

public $this setThemesPath(string $path)

Set the themes path for the application.

Parameters
  • string $path

public string tempPath()

Get the path to the public / web directory.

public string themesPath()

Get the path to the public / web directory.

Show inherited public methods

Inherited public methods

  • public void __construct(string|null $basePath=NULL) - defined in Illuminate\Foundation\Application. Create a new Illuminate application instance.
  • public mixed __get(string $key) - defined in Illuminate\Container\Container. Dynamically access container services.
  • public void __set(string $key, mixed $value) - defined in Illuminate\Container\Container. Dynamically set container services.
  • public void abort(int $code, string $message='', array $headers=array()) - defined in Illuminate\Foundation\Application. Throw an HttpException with the given data.
  • public void addContextualBinding(string $concrete, string $abstract, Closure|string $implementation) - defined in Illuminate\Container\Container. Add a contextual binding to the container.
  • public void addDeferredServices(array $services) - defined in Illuminate\Foundation\Application. Add an array of services to the application's deferred services.
  • public void afterBootstrapping(string $bootstrapper, Closure $callback) - defined in Illuminate\Foundation\Application. Register a callback to run after a bootstrapper.
  • public void afterLoadingEnvironment(Closure $callback) - defined in Illuminate\Foundation\Application. Register a callback to run after loading the environment.
  • public void afterResolving(Closure|string $abstract, Closure|null $callback=NULL) - defined in Illuminate\Container\Container. Register a new after resolving callback for all types.
  • public void alias(string $abstract, string $alias) - defined in Illuminate\Container\Container. Alias a type to a different name.
  • public string basePath(string $path='') - defined in Illuminate\Foundation\Application. Get the base path of the Laravel installation.
  • public void beforeBootstrapping(string $bootstrapper, Closure $callback) - defined in Illuminate\Foundation\Application. Register a callback to run before a bootstrapper.
  • public void bind(string $abstract, Closure|string|null $concrete=NULL, bool $shared=false) - defined in Illuminate\Container\Container. Register a binding with the container.
  • public void bindIf(string $abstract, Closure|string|null $concrete=NULL, bool $shared=false) - defined in Illuminate\Container\Container. Register a binding if it hasn't already been registered.
  • public void bindMethod(string $method, Closure $callback) - defined in Illuminate\Container\Container. Bind a callback to resolve with Container::call.
  • public void boot() - defined in Illuminate\Foundation\Application. Boot the application's service providers.
  • public void booted(mixed $callback) - defined in Illuminate\Foundation\Application. Register a new "booted" listener.
  • public void booting(mixed $callback) - defined in Illuminate\Foundation\Application. Register a new boot listener.
  • public string bootstrapPath(string $path='') - defined in Illuminate\Foundation\Application. Get the path to the bootstrap directory.
  • public void bootstrapWith(array $bootstrappers) - defined in Illuminate\Foundation\Application. Run the given array of bootstrap classes.
  • public bool bound(string $abstract) - defined in Illuminate\Foundation\Application. Determine if the given abstract type has been bound.
  • public mixed build(string $concrete) - defined in Illuminate\Container\Container. Instantiate a concrete instance of the given type.
  • public mixed call(callable|string $callback, array $parameters=array(), string|null $defaultMethod=NULL) - defined in Illuminate\Container\Container. Call the given Closure / class@method and inject its dependencies.
  • public mixed callMethodBinding(string $method, mixed $instance) - defined in Illuminate\Container\Container. Get the method binding for the given method.
  • public string configPath(string $path='') - defined in Illuminate\Foundation\Application. Get the path to the application configuration files.
  • public bool configurationIsCached() - defined in Illuminate\Foundation\Application. Determine if the application configuration is cached.
  • public $this configureMonologUsing(callable $callback) - defined in Illuminate\Foundation\Application. Define a callback to be used to configure Monolog.
  • public string databasePath(string $path='') - defined in Illuminate\Foundation\Application. Get the path to the database directory.
  • public string detectEnvironment(Closure $callback) - defined in Illuminate\Foundation\Application. Detect the application's current environment.
  • public string|bool environment() - defined in Illuminate\Foundation\Application. Get or check the current application environment.
  • public string environmentFile() - defined in Illuminate\Foundation\Application. Get the environment file the application is using.
  • public string environmentFilePath() - defined in Illuminate\Foundation\Application. Get the fully qualified path to the environment file.
  • public string environmentPath() - defined in Illuminate\Foundation\Application. Get the path to the environment file directory.
  • public void extend(string $abstract, Closure $closure) - defined in Illuminate\Container\Container. "Extend" an abstract type in the container.
  • public Closure factory(string $abstract) - defined in Illuminate\Container\Container. Get a closure to resolve the given type from the container.
  • public void flush() - defined in Illuminate\Foundation\Application. Flush the container of all bindings and resolved instances.
  • public void forgetExtenders(string $abstract) - defined in Illuminate\Container\Container. Remove all of the extender callbacks for a given type.
  • public void forgetInstance(string $abstract) - defined in Illuminate\Container\Container. Remove a resolved instance from the instance cache.
  • public void forgetInstances() - defined in Illuminate\Container\Container. Clear all of the instances from the container.
  • public void get($id) - defined in Illuminate\Container\Container. {@inheritdoc}.
  • public string getAlias(string $abstract) - defined in Illuminate\Container\Container. Get the alias for an abstract if available.
  • public array getBindings() - defined in Illuminate\Container\Container. Get the container's bindings.
  • public array getDeferredServices() - defined in Illuminate\Foundation\Application. Get the application's deferred services.
  • public static static getInstance() - defined in Illuminate\Container\Container. Set the globally available instance of the container.
  • public array getLoadedProviders() - defined in Illuminate\Foundation\Application. Get the service providers that have been loaded.
  • public string getLocale() - defined in Illuminate\Foundation\Application. Get the current application locale.
  • public callable getMonologConfigurator() - defined in Illuminate\Foundation\Application. Get the custom Monolog configurator for the application.
  • public string getNamespace() - defined in Illuminate\Foundation\Application. Get the application namespace.
  • public Illuminate\Support\ServiceProvider|null getProvider(Illuminate\Support\ServiceProvider|string $provider) - defined in Illuminate\Foundation\Application. Get the registered service provider instance if it exists.
  • public array getProviders(Illuminate\Support\ServiceProvider|string $provider) - defined in Illuminate\Foundation\Application. Get the registered service provider instances if any exist.
  • public void handle($request, $type=1, $catch=true) - defined in Illuminate\Foundation\Application. {@inheritdoc}.
  • public void has($id) - defined in Illuminate\Container\Container. {@inheritdoc}.
  • public bool hasBeenBootstrapped() - defined in Illuminate\Foundation\Application. Determine if the application has been bootstrapped before.
  • public bool hasMethodBinding(string $method) - defined in Illuminate\Container\Container. Determine if the container has a method binding.
  • public bool hasMonologConfigurator() - defined in Illuminate\Foundation\Application. Determine if the application has a custom Monolog configurator.
  • public mixed instance(string $abstract, mixed $instance) - defined in Illuminate\Container\Container. Register an existing instance as shared in the container.
  • public bool isAlias(string $name) - defined in Illuminate\Container\Container. Determine if a given string is an alias.
  • public bool isBooted() - defined in Illuminate\Foundation\Application. Determine if the application has booted.
  • public bool isDeferredService(string $service) - defined in Illuminate\Foundation\Application. Determine if the given service is a deferred service.
  • public bool isDownForMaintenance() - defined in Illuminate\Foundation\Application. Determine if the application is currently down for maintenance.
  • public bool isLocal() - defined in Illuminate\Foundation\Application. Determine if application is in local environment.
  • public bool isLocale(string $locale) - defined in Illuminate\Foundation\Application. Determine if application locale is the given locale.
  • public bool isShared(string $abstract) - defined in Illuminate\Container\Container. Determine if a given type is shared.
  • public void loadDeferredProvider(string $service) - defined in Illuminate\Foundation\Application. Load the provider for a deferred service.
  • public void loadDeferredProviders() - defined in Illuminate\Foundation\Application. Load and boot all of the remaining deferred providers.
  • public $this loadEnvironmentFrom(string $file) - defined in Illuminate\Foundation\Application. Set the environment file to be loaded during bootstrapping.
  • public mixed makeWith(string $abstract, array $parameters=array()) - defined in Illuminate\Container\Container. An alias function name for make().
  • public bool offsetExists(string $key) - defined in Illuminate\Container\Container. Determine if a given offset exists.
  • public mixed offsetGet(string $key) - defined in Illuminate\Container\Container. Get the value at a given offset.
  • public void offsetSet(string $key, mixed $value) - defined in Illuminate\Container\Container. Set the value at a given offset.
  • public void offsetUnset(string $key) - defined in Illuminate\Container\Container. Unset the value at a given offset.
  • public string path(string $path='') - defined in Illuminate\Foundation\Application. Get the path to the application "app" directory.
  • public void provideFacades(string $namespace) - defined in Illuminate\Foundation\Application. Configure the real-time facade namespace.
  • public mixed rebinding(string $abstract, Closure $callback) - defined in Illuminate\Container\Container. Bind a new callback to an abstract's rebind event.
  • public mixed refresh(string $abstract, mixed $target, string $method) - defined in Illuminate\Container\Container. Refresh an instance on the given target and method.
  • public Illuminate\Support\ServiceProvider register(Illuminate\Support\ServiceProvider|string $provider, array $options=array(), bool $force=false) - defined in Illuminate\Foundation\Application. Register a service provider with the application.
  • public void registerConfiguredProviders() - defined in Illuminate\Foundation\Application. Register all of the configured providers.
  • public void registerDeferredProvider(string $provider, string|null $service=NULL) - defined in Illuminate\Foundation\Application. Register a deferred provider and service.
  • public Illuminate\Support\ServiceProvider resolveProvider(string $provider) - defined in Illuminate\Foundation\Application. Resolve a service provider instance from the class name.
  • public bool resolved(string $abstract) - defined in Illuminate\Container\Container. Determine if the given abstract type has been resolved.
  • public void resolving(Closure|string $abstract, Closure|null $callback=NULL) - defined in Illuminate\Container\Container. Register a new resolving callback.
  • public string resourcePath(string $path='') - defined in Illuminate\Foundation\Application. Get the path to the resources directory.
  • public bool routesAreCached() - defined in Illuminate\Foundation\Application. Determine if the application routes are cached.
  • public bool runningInConsole() - defined in Illuminate\Foundation\Application. Determine if we are running in the console.
  • public bool runningUnitTests() - defined in Illuminate\Foundation\Application. Determine if we are running unit tests.
  • public $this setBasePath(string $basePath) - defined in Illuminate\Foundation\Application. Set the base path for the application.
  • public void setDeferredServices(array $services) - defined in Illuminate\Foundation\Application. Set the application's deferred services.
  • public static static setInstance(Illuminate\Contracts\Container\Container|null $container=NULL) - defined in Illuminate\Container\Container. Set the shared instance of the container.
  • public bool shouldSkipMiddleware() - defined in Illuminate\Foundation\Application. Determine if middleware has been disabled for the application.
  • public void singleton(string $abstract, Closure|string|null $concrete=NULL) - defined in Illuminate\Container\Container. Register a shared binding in the container.
  • public string storagePath() - defined in Illuminate\Foundation\Application. Get the path to the storage directory.
  • public void tag(array|string $abstracts, array|mixed $tags) - defined in Illuminate\Container\Container. Assign a set of tags to a given binding.
  • public array tagged(string $tag) - defined in Illuminate\Container\Container. Resolve all of the bindings for a given tag.
  • public void terminate() - defined in Illuminate\Foundation\Application. Terminate the application.
  • public $this terminating(Closure $callback) - defined in Illuminate\Foundation\Application. Register a terminating callback with the application.
  • public $this useDatabasePath(string $path) - defined in Illuminate\Foundation\Application. Set the database directory.
  • public $this useEnvironmentPath(string $path) - defined in Illuminate\Foundation\Application. Set the directory for the environment file.
  • public $this useStoragePath(string $path) - defined in Illuminate\Foundation\Application. Set the storage directory.
  • public string version() - defined in Illuminate\Foundation\Application. Get the version number of the application.
  • public Illuminate\Contracts\Container\ContextualBindingBuilder when(string $concrete) - defined in Illuminate\Container\Container. Define a contextual binding.
  • public Closure wrap(Closure $callback, array $parameters=array()) - defined in Illuminate\Container\Container. Wrap the given closure such that its dependencies will be injected when executed.

Protected methods

protected void bindPathsInContainer()

Bind all of the application paths in the container.

protected void registerBaseServiceProviders()

Register all of the base service providers.

Show inherited protected methods

Inherited protected methods

  • protected mixed bootProvider(Illuminate\Support\ServiceProvider $provider) - defined in Illuminate\Foundation\Application. Boot the given service provider.
  • protected void dropStaleInstances(string $abstract) - defined in Illuminate\Container\Container. Drop all of the stale instances and aliases.
  • protected string|null findInContextualBindings(string $abstract) - defined in Illuminate\Container\Container. Find the concrete binding for the given abstract in the contextual binding array.
  • protected void fireAfterResolvingCallbacks(string $abstract, mixed $object) - defined in Illuminate\Container\Container. Fire all of the after resolving callbacks.
  • protected void fireAppCallbacks(array $callbacks) - defined in Illuminate\Foundation\Application. Call the booting callbacks for the application.
  • protected void fireCallbackArray(mixed $object, array $callbacks) - defined in Illuminate\Container\Container. Fire an array of callbacks with an object.
  • protected void fireResolvingCallbacks(string $abstract, mixed $object) - defined in Illuminate\Container\Container. Fire all of the resolving callbacks.
  • protected array getCallbacksForType(string $abstract, object $object, array $callbacksPerType) - defined in Illuminate\Container\Container. Get all callbacks for a given type.
  • protected Closure getClosure(string $abstract, string $concrete) - defined in Illuminate\Container\Container. Get the Closure to be used when building a type.
  • protected mixed getConcrete(string $abstract) - defined in Illuminate\Container\Container. Get the concrete type for a given abstract.
  • protected string|null getContextualConcrete(string $abstract) - defined in Illuminate\Container\Container. Get the contextual concrete binding for the given abstract.
  • protected array getExtenders(string $abstract) - defined in Illuminate\Container\Container. Get the extender callbacks for a given type.
  • protected array getLastParameterOverride() - defined in Illuminate\Container\Container. Get the last parameter override.
  • protected mixed getParameterOverride(ReflectionParameter $dependency) - defined in Illuminate\Container\Container. Get a parameter override for a dependency.
  • protected array getReboundCallbacks(string $abstract) - defined in Illuminate\Container\Container. Get the rebound callbacks for a given type.
  • protected bool hasParameterOverride(ReflectionParameter $dependency) - defined in Illuminate\Container\Container. Determine if the given dependency has a parameter override.
  • protected bool isBuildable(mixed $concrete, string $abstract) - defined in Illuminate\Container\Container. Determine if the given concrete is buildable.
  • protected void markAsRegistered(Illuminate\Support\ServiceProvider $provider) - defined in Illuminate\Foundation\Application. Mark the given provider as registered.
  • protected void notInstantiable(string $concrete) - defined in Illuminate\Container\Container. Throw an exception that the concrete is not instantiable.
  • protected void rebound(string $abstract) - defined in Illuminate\Container\Container. Fire the "rebound" callbacks for the given abstract type.
  • protected void registerBaseBindings() - defined in Illuminate\Foundation\Application. Register the basic bindings into the container.
  • protected void removeAbstractAlias(string $searched) - defined in Illuminate\Container\Container. Remove an alias from the contextual binding alias cache.
  • protected mixed resolve(string $abstract, array $parameters=array()) - defined in Illuminate\Container\Container. Resolve the given type from the container.
  • protected mixed resolveClass(ReflectionParameter $parameter) - defined in Illuminate\Container\Container. Resolve a class based dependency from the container.
  • protected array resolveDependencies(array $dependencies) - defined in Illuminate\Container\Container. Resolve all of the dependencies from the ReflectionParameters.
  • protected mixed resolvePrimitive(ReflectionParameter $parameter) - defined in Illuminate\Container\Container. Resolve a non-class hinted primitive dependency.
  • protected void unresolvablePrimitive(ReflectionParameter $parameter) - defined in Illuminate\Container\Container. Throw an exception for an unresolvable primitive.