diff --git a/src/Template/Parser/StreamingCompiler.php b/src/Template/Parser/StreamingCompiler.php index 8a9a376..85c6364 100644 --- a/src/Template/Parser/StreamingCompiler.php +++ b/src/Template/Parser/StreamingCompiler.php @@ -784,7 +784,7 @@ private function renderComponent(Document $document): Document ); // configure tokenizer - $attributes = Attributes::forClass($component::class); + $attributes = Attributes::forClass($component->type); foreach($attributes->classAttributes as $attribute) { if($attribute instanceof AbstractCache) { $this->tokenizer = $attribute->tokenize($this->tokenizer);