Skip to content

Make ErrorHandler part of the public API - #173

Merged
SimonFrings merged 1 commit into
clue:mainfrom
clue-labs:error-handler
Jul 22, 2022
Merged

Make ErrorHandler part of the public API#173
SimonFrings merged 1 commit into
clue:mainfrom
clue-labs:error-handler

Conversation

@clue

@clue clue commented Jul 22, 2022

Copy link
Copy Markdown
Owner

This changeset makes the existing ErrorHandler part of the public API. It can now be given explicitly to the App like this:

<?php

require __DIR__ . '/../vendor/autoload.php';

$app = new FrameworkX\App(
    new FrameworkX\ErrorHandler()
);

// Register routes here, see routing…

$app->run();

This is a starting point to add more options to control error handling in follow-up PRs as discussed in #170.

Builds on top of #41, #39, #37, #12

@clue clue added the new feature New feature or request label Jul 22, 2022
@clue
clue requested a review from SimonFrings July 22, 2022 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants