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

ADD setEnv to Pdf #78

Merged
merged 2 commits into from
Aug 29, 2024
Merged

ADD setEnv to Pdf #78

merged 2 commits into from
Aug 29, 2024

Conversation

enricodelazzari
Copy link
Contributor

this pr allows you to set the env on the symfony process

src/Pdf.php Outdated
$this->env = $env;
return $this;
}

public function text(): string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of introducing a seperate method for this, I'd rather have a callable optionally being passed to text. If a callable is given, it should receive the $process. This way people can customize the process however they want.

Could you adjust the PR to support this behaviour?

@freekmurze freekmurze merged commit abe38b0 into spatie:main Aug 29, 2024
8 checks passed
@freekmurze
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants