Add PhpStormOpener to editors README section

This commit is contained in:
Bogdan Padalko
2013-08-02 12:06:37 +03:00
parent d4985c88b3
commit 11ea831c3a
+18
View File
@@ -183,6 +183,24 @@ $handler->setEditor(function($file, $line) {
```
You can add PhpStorm support with [PhpStormOpener](https://github.com/pinepain/PhpStormOpener#phpstormopener) (Mac OS X only):
```php
$handler->setEditor(
function ($file, $line) {
// if your development server is not local it's good to map remote files to local
$translations = array('^' . __DIR__ => '~/Development/PhpStormOpener'); // change to your path
foreach ($translations as $from => $to) {
$file = preg_replace('#' . $from . '#', $to, $file, 1);
}
return "pstorm://$file:$line";
}
);
```
### Available Handlers
**whoops** currently ships with the following built-in handlers, available in the `Whoops\Handler` namespace: