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

Prevent "class not available" error (Adaption towards Contao 5 Step 002) #2490

Merged
merged 2 commits into from
Oct 17, 2023
Merged

Prevent "class not available" error (Adaption towards Contao 5 Step 002) #2490

merged 2 commits into from
Oct 17, 2023

Conversation

Ernestopheles
Copy link
Contributor

Next adaption towards Contao 5.

See useCases tested with cypress: tests
Contao 4.13.31, Isotope 2.9 and PHP 8.1

@Ernestopheles
Copy link
Contributor Author

First adaption (002) towards Contao 5.

Take Template from Isotope\Template instead of \Template to prevent "class not available" error in ProductCollection::addToTemplate.

This error occured during cache warm-up under Contao 5.2, PHP 8.1 as class \Template was not available.

See useCases tested with cypress: tests
Contao 4.13.31, Isotope 2.9 and PHP 8.1

@Ernestopheles Ernestopheles changed the title C4 002 Adaption towards Contao 5 Prevent "class not available" error (Adaption towards Contao 5 Step 002) Oct 15, 2023
Copy link
Member

@aschempp aschempp left a comment

Choose a reason for hiding this comment

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

Good find! And a perfect example of something we can & should & will fix in the 2.9 version since that affects Contao 4 as well. Just one minor change request regarding the namespace.

@aschempp aschempp merged commit 502fa70 into isotope:2.9 Oct 17, 2023
@aschempp
Copy link
Member

Thank you @Ernestopheles

@aschempp aschempp added this to the 2.9.0 milestone Oct 17, 2023
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