zeuxisoo / php-slim-whoops

PHP whoops error on slim framework
131 stars 10 forks source link

Added in a resolver setting, if resolver and editor is found in settings #31

Closed WilliamStam closed 3 years ago

WilliamStam commented 3 years ago

Added in a resolver setting, if resolver and editor is found in settings then use addEditor() instead of setEditor()

issue here: https://github.com/zeuxisoo/php-slim-whoops/issues/30

basically on windows we need to use a remote call.

usage on this would be something like

        $app->add(new WhoopsMiddleware(array(
            'enable' => true,
            'editor' => 'phpstorm',
            'resolver' => 'http://localhost:8091?message=%file:%line'
        )));

if resolver isnt set then it defaults to setEditor()

WilliamStam commented 3 years ago

no need for this at all. just pass the editor a function as per https://github.com/zeuxisoo/php-slim-whoops/issues/30#issuecomment-893222991 lol