You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a stash default "config" which pointed to the app's config was a backcompat measure ages ago. Most users use the config helper now. It is awkward that the default is only loaded by the config loader plugins and makes for unexpected action-at-a-distance since that default does not exist if you load configuration in other ways. It should be removed in favor of the config helper and/or app accessor.
Mitigations for affected users:
Users are encouraged to switch to using config in templates rather than $config. Projects wishing to keep the existing behavior may implement the default in the project themselves by adding $app->defaults(config => $app->config); to the application startup after loading their configuration.
The text was updated successfully, but these errors were encountered:
Having a stash default "config" which pointed to the app's config was a backcompat measure ages ago. Most users use the config helper now. It is awkward that the default is only loaded by the config loader plugins and makes for unexpected action-at-a-distance since that default does not exist if you load configuration in other ways. It should be removed in favor of the config helper and/or app accessor.
Mitigations for affected users:
Users are encouraged to switch to using
config
in templates rather than$config
. Projects wishing to keep the existing behavior may implement the default in the project themselves by adding$app->defaults(config => $app->config);
to the application startup after loading their configuration.The text was updated successfully, but these errors were encountered: