title: How can I use Symfony's Webpack Encore TagRenderer and EntrypointLookup without Twig
body: <p>I'm adding Symfony Webpack Encore to an existing project with native <code>php</code> templates, so without the use of Twig. Refactoring the whole project to Twig is not worth the effort now.</p>
  
  <p>The following Twig code is proposed in the Webpack Encore documentation to render the JS <code>script</code> tags and the CSS <code>link</code> tags.</p>
  
  <pre><code> {% block stylesheets %}
       {{ encore_entry_link_tags('app') }}
   {% endblock %}
   {% block javascripts %}
       {{ encore_entry_script_tags('app') }}
   {% endblock %}
  </code></pre>
  
  <p>So I would like to implement the same code without using Twig. These Twig functions use the <code>TagRenderer</code> and <code>EntrypointLookup</code> classes. How can I initiate the required models and mimic the functionality of the Twig functions?</p>