Skip to content
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

Merged
merged 10 commits into from
Jan 10, 2021
Merged

Improve docs #184

merged 10 commits into from
Jan 10, 2021

Conversation

ThomasLandauer
Copy link
Contributor

No description provided.

@ThomasLandauer
Copy link
Contributor Author

I also changed the "sample" setting to defaultFont, since defaultPaperSize isn't working (see #1)

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
Copy link
Member

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

Copy link
Contributor Author

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 ;-)

Copy link
Member

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.

Copy link
Contributor Author

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 :-)

README.md Outdated Show resolved Hide resolved
@core23 core23 changed the title Explaining $this->factory->create(); Improve docs Jan 10, 2021
@core23 core23 merged commit b95385c into nucleos:main Jan 10, 2021
@core23
Copy link
Member

core23 commented Jan 10, 2021

Thanks @ThomasLandauer

@ThomasLandauer ThomasLandauer deleted the patch-2 branch January 10, 2021 20:11
@core23 core23 added this to the 3.1.1 milestone Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants