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

Wrong namespace #2

Open
mgrundkoetter opened this issue Jul 13, 2021 · 0 comments · May be fixed by ujamii/html2pdfbundle#1
Open

Wrong namespace #2

mgrundkoetter opened this issue Jul 13, 2021 · 0 comments · May be fixed by ujamii/html2pdfbundle#1

Comments

@mgrundkoetter
Copy link

In Html2pdfFactory there is am import of use HTML2PDF;. This worked up until version 5 of https://github.com/spipu/html2pdf which introduced namespaces. This is also in the install docs: the namespace to import must be use Spipu\Html2Pdf\Html2Pdf;

The Symfony error this trigges is this:

Attempted to load class "HTML2PDF" from the global namespace.
Did you forget a "use" statement?

mgrundkoetter added a commit to ujamii/html2pdfbundle that referenced this issue Jul 13, 2021
@mgrundkoetter mgrundkoetter linked a pull request Jul 13, 2021 that will close this issue
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 a pull request may close this issue.

1 participant