error-handler icon indicating copy to clipboard operation
error-handler copied to clipboard

Support multiple solutions

Open roxblnfk opened this issue 1 year ago • 1 comments

  • Render multiple solutions in UI
  • Add Solution Provider Registry like this:
    interface SolutionProviderRegisrty {
       /**
        * @param callable(\Throwable): SolutionInterface|\Stringable|string $provider
        */
       public function register($provider): void;
    }
    // todo
    interface SolutionInterface {}
    
  • https://github.com/yiisoft/error-handler/issues/104 might be implemented like a SolutionProvider

In this case the user can implement its own AI based solution provider, support custom attributes or interfaces

roxblnfk avatar Apr 29 '24 15:04 roxblnfk

The interface should probably also provide information about which exceptions it is suitable for.

vjik avatar Apr 30 '24 12:04 vjik