Application

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

Extends

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 hasDatabaseTable (string $table) : bool

Checks if the provided table is present on the default database connection.

Parameters
Property Description
$table
string
Returns
bool

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

Get the path to the language files.

Parameters
Property Description
$path
string
Returns
string

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 normalizeCachePath (string $key, string $default) : string

Normalize a relative or absolute path to a cache file.

Parameters
Property Description
$key
string
$default
string
Returns
string

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