diff --git a/README.md b/README.md index 55c0f59..71f2bd6 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Ray.Di's grapher leans heavily on [GraphViz](http://www.graphviz.org/), an open ```php use Ray\ObjectGrapher\ObjectGrapher; -$dot = (new ObjectGrapher(new FooModule))(); +$dot = (new ObjectGrapher)(new FooModule); file_put_contents('path/to/file', $dot); ```