Skip to content

Commit

Permalink
Corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
reyostallenberg committed Jul 2, 2018
1 parent ba9ad2f commit 3cfd574
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ The dompdf wrapper dispatches events to convenient get the inner dompdf instance
- `dompdf.output` is dispatched in getPdf
- `dompdf.stream` is dispatched in streamHtml

See [Symfony event dispatcher documentation](https://symfony.com/doc/current/event_dispatcher.html) for more info.

## License

This bundle is under the [MIT license](LICENSE.md).
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<service id="Core23\DompdfBundle\Wrapper\DompdfWrapper" class="Core23\DompdfBundle\Wrapper\DompdfWrapper" public="true">
<argument type="service" id="dompdf.factory"/>
<call method="setEventDispatcher">
<argument type="service" id="event_dispatcher" />
<argument type="service" id="event_dispatcher"/>
</call>
</service>
<service id="Core23\DompdfBundle\Factory\DompdfFactory" class="Core23\DompdfBundle\Factory\DompdfFactory" public="true">
Expand Down
3 changes: 2 additions & 1 deletion src/Wrapper/DompdfWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ public function __construct(DompdfFactoryInterface $dompdfFactory)

/**
* Set the event dispatcher.
*
* @param EventDispatcherInterface $eventDispatcher
*/
public function setEventDispatcher(EventDispatcherInterface $eventDispatcher)
public function setEventDispatcher(EventDispatcherInterface $eventDispatcher): void
{
$this->eventDispatcher = $eventDispatcher;
}
Expand Down

0 comments on commit 3cfd574

Please sign in to comment.