-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve docs #184
Improve docs #184
Conversation
I also changed the "sample" setting to |
README.md
Outdated
@@ -53,7 +53,9 @@ final class MyService | |||
public function render() | |||
{ | |||
// ... | |||
$this->factory->create(); | |||
$dompdf = $this->factory->create(); // Returns a `Dompdf\Dompdf` object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Returns ...
comment seems redundant to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, to me it wasn't clear what a method called create()
could return ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just example code to get started. I would leave out anything special that a normal developer could not figure out itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's explained in README anybody can figure it out before installing it. Besides, one additional line here doesn't hurt anybody, and the @var
annotation is a really nice solution :-)
Thanks @ThomasLandauer |
No description provided.