Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestion from @xepozz
  • Loading branch information
xepozz authored Aug 9, 2025
commit a45baf8f0cfc28832464d03b96eebce933cac065
3 changes: 3 additions & 0 deletions src/Solution/SolutionProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
*/
interface SolutionProviderInterface
Comment thread
xepozz marked this conversation as resolved.
Comment thread
vjik marked this conversation as resolved.
Comment thread
xepozz marked this conversation as resolved.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SolutionProviderInterface must be placed into separate package. yiisoft/error-handler is too heavy dependency for packages, that implement SolutionProviderInterface.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not about any solution in the air. It's about the specific contract between web, user, application and error.
It shouldn't be separated. At least for now.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interface should define format of solution. Users of interface should know about format of solution.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HTML for sure

{
/**
* Returns true if the implementation may suggest more than regular provider.
*/
public function supports(\Throwable $e): bool;
Comment thread
xepozz marked this conversation as resolved.

/**
Expand Down
Loading