rdlowrey/Alert — pull request #7 by DaveRandom (2014-08-21 13:36:38+00:00)
Title: Additional args for Alert\run() callback

Because this can be useful to avoid unnecessary constructors/properties solely for DI when the application entry point is an object method.

Consider:

```php
class App
{
private $data;
public function __construct($data)
{
$this->data = $data;
}
public function run($reactor)
{
// do stuff with $this->data
}
}

$app = new App(new Thing);
Alert\run([$app, 'run']);
```

vs.

```php
class App
{
public function run($reactor, $data)
{
// do stuff with $data
}
}

$app = new App;
Alert\run([$app, 'run'], [new Thing]);
```