Skip to content

ℹ️ Add informative errors on bootstrap - #379

Merged
giuscris merged 1 commit into
2.xfrom
feature/informative-bootstrap-errors
Nov 1, 2022
Merged

ℹ️ Add informative errors on bootstrap#379
giuscris merged 1 commit into
2.xfrom
feature/informative-bootstrap-errors

Conversation

@giuscris

Copy link
Copy Markdown
Member

This PR adds friendly and informative error pages when Formwork cannot load, i.e. when PHP version requirements are not met or dependencies are not installed.

Logic in index.php is modified, and checks are moved to formwork/bootstrap.php which now is loaded from the entry point.

Now instead of warnings and fatal errors for when there is no vendor/autoload.php, a nice page is displayed:

image

@giuscris giuscris changed the title Add informative errors on bootstrap phase Add informative errors on bootstrap Oct 30, 2022
@giuscris giuscris changed the title Add informative errors on bootstrap ℹ️ Add informative errors on bootstrap Nov 1, 2022
@giuscris giuscris added the enhancement New feature or request label Nov 1, 2022
@giuscris giuscris added this to the 2.0.0 milestone Nov 1, 2022
@giuscris
giuscris merged commit ebc63d4 into 2.x Nov 1, 2022
@giuscris
giuscris deleted the feature/informative-bootstrap-errors branch November 1, 2022 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant