Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

remove deprecated usage of getExtension #211

Merged
merged 4 commits into from
Feb 18, 2019
Merged

Conversation

kesslerdev
Copy link
Contributor

No description provided.

Copy link
Owner

@stephpy stephpy left a comment

Choose a reason for hiding this comment

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

It is bc break ?

@kesslerdev
Copy link
Contributor Author

only for twig < 1.26

@@ -16,7 +16,7 @@ public function compile(\Twig_Compiler $compiler)
{
$compiler
->addDebugInfo($this)
->write('echo $this->env->getExtension(\'timeline_render\')->setTheme(')
->write('echo $this->env->getExtension(\'Spy\TimelineBundle\Twig\Extension\TimelineExtension\')->setTheme(')
->subcompile($this->getNode('action'))
Copy link
Contributor

Choose a reason for hiding this comment

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

Please don't use fcqn here

Copy link
Contributor

Choose a reason for hiding this comment

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

So what do you suggest? using timeline_render generates a deprecation.

Copy link
Owner

@stephpy stephpy Feb 18, 2019

Choose a reason for hiding this comment

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

You can use TimelineExtension::class, then use

@stephpy stephpy merged commit 5937b64 into stephpy:master Feb 18, 2019
@stephpy
Copy link
Owner

stephpy commented Feb 18, 2019

🍻

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

Successfully merging this pull request may close these issues.

4 participants