You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We just got a question on KnpU about why (at least in 3.3) $this->container->get('templating') does not auto-complete and reports as a "missing service".
The reason is that templating is an alias to templating.engine.twig and templating.engine.twig is a private service. When I manually change templating.engine.twig to public, auto-completion works instantly.
Is it possible that the plugin is incorrectly hiding an alias if the final service is private? The alias itself can be public/private, and that should be used.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi guys!
We just got a question on KnpU about why (at least in 3.3)
$this->container->get('templating')
does not auto-complete and reports as a "missing service".The reason is that
templating
is an alias totemplating.engine.twig
andtemplating.engine.twig
is a private service. When I manually changetemplating.engine.twig
to public, auto-completion works instantly.Is it possible that the plugin is incorrectly hiding an alias if the final service is private? The alias itself can be public/private, and that should be used.
Thanks!
The text was updated successfully, but these errors were encountered: