Application
 class Winter\Storm\Foundation\Application
extends Illuminate\Foundation\ApplicationExtends
| Class | Description | 
|---|---|
| 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
public after (Closure | string $callback) : void
Register an "after" application filter.
| Property | Type | Description | 
|---|---|---|
| $callback | Closure | string | Closure | string | 
public before (Closure | string $callback) : void
Register a "before" application filter.
| Property | Type | Description | 
|---|---|---|
| $callback | Closure | string | Closure | string | 
public bootstrapWith (array $bootstrappers) : void
Run the given array of bootstrap classes.
| Property | Type | Description | 
|---|---|---|
| $bootstrappers | array | array | 
public error (Closure $callback) : void
Register an application error handler.
| Property | Type | Description | 
|---|---|---|
| $callback | Closure | Closure | 
public fatal (Closure $callback) : void
Register an error handler for fatal errors.
| Property | Type | Description | 
|---|---|---|
| $callback | Closure | Closure | 
public getCachedClassesPath () : string
Get the path to the cached packages.php file.
public getCachedCompilePath () : string
Get the path to the cached "compiled.php" file.
public getCachedConfigPath () : string
Get the path to the configuration cache file.
public getCachedPackagesPath () : string
Get the path to the cached packages.php file.
public getCachedRoutesPath () : string
Get the path to the routes cache file.
public getCachedServicesPath () : string
Get the path to the cached services.json file.
public getNamespace () : string
Get the application namespace.
public hasDatabase () : bool
Returns true if a database connection is present.
public hasDatabaseTable (string $table) : bool
Checks if the provided table is present on the default database connection.
| Property | Type | Description | 
|---|---|---|
| $table | string | string | 
            
            
            
                public
            
                        
            langPath (string $path = "")
                            : string
                    
        
        Get the path to the language files.
| Property | Type | Description | 
|---|---|---|
| $path | string | string | 
public mediaPath () : string
Get the path to the media directory.
public pluginsPath () : string
Get the path to the public / web directory.
public publicPath () : string
Get the path to the public / web directory.
            
            
            
                public
            
                        
            registerConfiguredProviders (boolean $isRetry = false)
                            : void
                    
        
        Register all of the configured providers.
| Property | Type | Description | 
|---|---|---|
| $isRetry | boolean | boolean If true, this is a second attempt without the cached packages. | 
public registerCoreContainerAliases () : void
Register the core class aliases in the container.
public runningInBackend () : bool
Determine if we are running in the back-end area.
public setLocale (string $locale) : void
Set the current application locale.
| Property | Type | Description | 
|---|---|---|
| $locale | string | string | 
public setMediaPath ($path) : static
Set the media path for the application.
| Property | Type | Description | 
|---|---|---|
| $path | mixed | mixed | 
public setPluginsPath (string $path) : $this
Set the plugins path for the application.
| Property | Type | Description | 
|---|---|---|
| $path | string | string | 
public setTempPath ($path) : static
Set the temp path for the application.
| Property | Type | Description | 
|---|---|---|
| $path | mixed | mixed | 
public setThemesPath (string $path) : $this
Set the themes path for the application.
| Property | Type | Description | 
|---|---|---|
| $path | string | string | 
public setUploadsPath ($path) : static
Set the uploads path for the application.
| Property | Type | Description | 
|---|---|---|
| $path | mixed | mixed | 
public tempPath () : string
Get the path to the public / web directory.
public themesPath () : string
Get the path to the public / web directory.
public uploadsPath () : string
Get the path to the uploads directory.
public version () : string
Get the version number of the application.
protected bindPathsInContainer () : void
Bind all of the application paths in the container.
protected clearPackageCache () : void
Clears cached packages, services and classes.
protected normalizeCachePath (string $key, string $default) : string
Normalize a relative or absolute path to a cache file.
| Property | Type | Description | 
|---|---|---|
| $key | string | string | 
| $default | string | string | 
protected registerBaseBindings () : void
Register the basic bindings into the container.
protected registerBaseServiceProviders () : void
Register all of the base service providers.