No need to use `setAttribute()` :

```php
return new ezpKernelResult( $content, array( 'module_result'  => $moduleResult ) );
```