stage1/docker-php — pull request #15 by joelwurtz (2014-02-20 11:34:21+00:00)
Title: Use stream for every Response

This pull request intend to resolve the following problem

Actually we are running a container then the we can be able to attach for getting log, problem is if container is too fast to execute no log will be output and attach request will gone in timeout :(

To change this problem we now pass the stream for every response and read it by default, a parameter ($blocking) can be passed to the client we sending the request to not read the content of the response and delegate this take to an upper level.

I also add a attachedResponse to the container and attach it by default we calling run in container manager, so we can get our response from our container to read the log in "realtime"

Sample

```php
$containerManager->run($container);
$container->getAttachedResponse()->readAttach(function ($type, $content) {
echo $content;
});
```