Метод | Описание | |
---|---|---|
__construct ( |
Base constructor. | |
getAbsolutePath ( ) : string | Get application root absolute path. | |
getApplicationConfig ( string $query = '', null $default = null ) : mixed | |
Get the application configuration (config from App.yaml file). | |
getComponentConfig ( string $component, string $query = '', null $default = null ) : mixed | |
Get a component configuration (configurations from within the environment folder). | |
getEnvironmentConfig ( string $query = '', null $default = null ) : mixed | |
Returns the current environment configuration. | |
getEnvironmentName ( ) : string | Get the name of current environment. | |
getNamespace ( ) : string | Get application namespace. | |
getWebPath ( ) : string | Get application web path. | |
httpResponse ( ) : |
Send the http response to the browser. | |
isProductionEnvironment ( ) : boolean | Checks if current environment is Production. | |
showErrors ( ) : boolean | Based on the current environment configuration, should system errors be shown or not. | |
view ( ) : |
Get the view instance. |
Метод | Описание | |
---|---|---|
getTemplateEngineInstance ( ) : Webiny\Component\TemplateEngine\Bridge\TemplateEngineInterface | Returns template engine instance, based on current configuration. |
public __construct ( |
||
$environment | Current application environment. |
public getAbsolutePath ( ) : string | ||
Результат | string |
public getComponentConfig ( string $component, string $query = '', null $default = null ) : mixed | |
||
$component | string | Component name. |
$query | string | Query inside the component config. |
$default | null | Default value which should be returned if query has no matches. |
Результат | mixed | |
public getEnvironmentName ( ) : string | ||
Результат | string |
public getNamespace ( ) : string | ||
Результат | string |
public getWebPath ( ) : string | ||
Результат | string |
public httpResponse ( ) : |
||
Результат |
public isProductionEnvironment ( ) : boolean | ||
Результат | boolean |
public showErrors ( ) : boolean | ||
Результат | boolean |