Re: Iteration III: Packages (was Re: [PHP-DEV] [Initial Feedback] PHP User Modules - An Adaptation of ES6 from JavaScript)

From: Date: Wed, 03 Jul 2024 18:06:57 +0000
Subject: Re: Iteration III: Packages (was Re: [PHP-DEV] [Initial Feedback] PHP User Modules - An Adaptation of ES6 from JavaScript)
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Wed, Jul 3, 2024 at 1:24 PM Rob Landers <[email protected]> wrote:

>
> So, if v4 has BC breaks ... how would Drupal not crash? If you allow
> multiple versions, how would you use both versions? I'm not even sure that
> is a logical possibility.
>
>
Twig in Drupal will be installed the old way and find itself bound at \Twig\

import 'twig/twig v4' as NewTwig

That aliases the new version to \NewTwig\

And you can work with it by addressing the new library at the new
namespace.  I'll go through this in more detail in the 4th iteration post
for this which I'll work on tonight.


Thread (128 messages)

« previous php.internals (#124205) next »