Application

 class Winter\Storm\Foundation\Application
extends Illuminate\Foundation\Application

Properties

protected $mediaPath : string

The base path for media.

protected $pluginsPath : string

The base path for plugins.

protected $tempPath : string

The base temp path.

protected $themesPath : string

The base path for themes.

protected $uploadsPath : string

The base path for uploads.

Methods

public __toString () : string

This is a temporary fix for an issue with twig reflection.

The full fix is here: https://github.com/twigphp/Twig/pull/3719

Returns
string

public after (Closure | string $callback) : void

Register an "after" application filter.

Parameters
Property Description
$callback
Closure | string
Returns
void

public before (Closure | string $callback) : void

Register a "before" application filter.

Parameters
Property Description
$callback
Closure | string
Returns
void

public bootstrapWith (array $bootstrappers) : void

Run the given array of bootstrap classes.

Parameters
Property Description
$bootstrappers
array
Returns
void

public error (Closure $callback) : void

Register an application error handler.

Parameters
Property Description
$callback
Closure
Returns
void

public fatal (Closure $callback) : void

Register an error handler for fatal errors.

Parameters
Property Description
$callback
Closure
Returns
void

public getCachedClassesPath () : string

Get the path to the cached packages.php file.

Returns
string

public getCachedCompilePath () : string

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

Returns
string

public getCachedConfigPath () : string

Get the path to the configuration cache file.

Returns
string

public getCachedPackagesPath () : string

Get the path to the cached packages.php file.

Returns
string

public getCachedRoutesPath () : string

Get the path to the routes cache file.

Returns
string

public getCachedServicesPath () : string

Get the path to the cached services.json file.

Returns
string

public getNamespace () : string

Get the application namespace.

Returns
string

public hasDatabase () : bool

Returns true if a database connection is present.

Returns
bool

public langPath (string $path = "") : string

Get the path to the language files.

Parameters
Property Description
$path
string
Returns
string

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

Resolve the given type from the container.

(Overriding Container::make)

Parameters
Property Description
$abstract
string
$parameters
array
Returns
mixed

public mediaPath () : string

Get the path to the media directory.

Returns
string

public pluginsPath () : string

Get the path to the public / web directory.

Returns
string

public publicPath () : string

Get the path to the public / web directory.

Returns
string

public registerConfiguredProviders (boolean $isRetry = false) : void

Register all of the configured providers.

Parameters
Property Description
$isRetry
boolean

If true, this is a second attempt without the cached packages.

Returns
void

public registerCoreContainerAliases () : void

Register the core class aliases in the container.

Returns
void

public runningInBackend () : bool

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

Returns
bool

public setLocale (string $locale) : void

Set the current application locale.

Parameters
Property Description
$locale
string
Returns
void

public setMediaPath ($path) : static

Set the media path for the application.

Parameters
Property Description
$path
mixed
Returns
static

public setPluginsPath (string $path) : $this

Set the plugins path for the application.

Parameters
Property Description
$path
string
Returns
$this

public setTempPath ($path) : static

Set the temp path for the application.

Parameters
Property Description
$path
mixed
Returns
static

public setThemesPath (string $path) : $this

Set the themes path for the application.

Parameters
Property Description
$path
string
Returns
$this

public setUploadsPath ($path) : static

Set the uploads path for the application.

Parameters
Property Description
$path
mixed
Returns
static

public tempPath () : string

Get the path to the public / web directory.

Returns
string

public themesPath () : string

Get the path to the public / web directory.

Returns
string

public uploadsPath () : string

Get the path to the uploads directory.

Returns
string

public version () : string

Get the version number of the application.

Returns
string

protected bindPathsInContainer () : void

Bind all of the application paths in the container.

Returns
void

protected clearPackageCache () : void

Clears cached packages, services and classes.

Returns
void

protected registerBaseBindings () : void

Register the basic bindings into the container.

Returns
void

protected registerBaseServiceProviders () : void

Register all of the base service providers.

Returns
void
Copyright © 2024 Winter CMS