<p dir="auto">Right now, as I understand it, helpers registered to the PHP templating engine aren't accesible in Twig, so any developer who writes a helper must duplicate (or at least wrap) their helper to make it available to Twig templates. To me, this seems like unnecessary work for the developer and it's bound to cause trouble for some users switching from one templating engine to the other. Why not simply have TwigBundle pass the PHP helpers to all twig templates?</p>
<p dir="auto">The API of FileSystem::copy() is unintuitive and its docs are probably flawed. It says:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@param bool    $override   Whether to override an existing file or not"><pre class="notranslate"><code class="notranslate">@param bool    $override   Whether to override an existing file or not
</code></pre></div>
<p dir="auto">But that's not true, even if <code class="notranslate">$override</code> is false the target might be overwritten if it's older than origin. Generally, I would expect</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$fs-&gt;copy($origin, $target, false);"><pre class="notranslate"><code class="notranslate">$fs-&gt;copy($origin, $target, false);
</code></pre></div>
<p dir="auto">not to overwrite my $target but it does. Either the docs should make this very clear or the behavior should ideally be changed but that would probably mean a breaking change. Anyway, if <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="30279843" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/10547" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/10547/hovercard" href="https://github.com/symfony/symfony/issues/10547">#10547</a> gets a go ahead I think that the time comparison "magic" should be removed or at least hidden behind some appropriately named parameter.</p>