Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124205 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 0F66C1A009C for ; Wed, 3 Jul 2024 18:07:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1720030112; bh=DsaBZnMyiSd+lC4EENk5lB/1DK5hYTySvVULL4rQNJQ=; h=References:In-Reply-To:From:Date:Subject:To:From; b=T2XhCLUclxLGyTTpXVtjzG7nerceiebdn6/3oQzUWPLtFtJpifuDI/MwRzfjD6ISc QQSNiviBTFBMRrbb3EeVBHQOgDrugw7Ku5tgnb205QG9muQv3+wqfoQWr9lDifzvBJ GXFcSwDAlOKI1jQOPM1/BngcBdGQOekfXLm8bZx6CKygGQhRbpXANObmIBffDvDKbZ ogc1LGMDeI1OM95UPDMCQy3i2NvESDP2LasF55fuu3frUklvEiG9cSL73svtVSvqst 67UKGz1p4bIf9Cm25+B2rBaKLLby26PYCbj/VObDZDOkVFmqAe7N8osgEHk549hh4G UnYc9MvUrdP0A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E3BA41804F3 for ; Wed, 3 Jul 2024 18:08:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 3 Jul 2024 18:08:31 +0000 (UTC) Received: by mail-qt1-f182.google.com with SMTP id d75a77b69052e-446883be273so10715911cf.1 for ; Wed, 03 Jul 2024 11:07:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720030028; x=1720634828; darn=lists.php.net; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=G4R10W5vO+rvcJplFBfBnRiGlw4WwwaRcqmz4KcvBrc=; b=DSs387w+7w9owxI5cQpOLC/yOXJrXZCbipmLsJKnv40lWUGmGwkudDZS4LZwyb/NsH GnN4cP0QXa4pjVhlyC1i+6QzQLHp28zVVsmydN891HZCZHuswUm3ZQaF2Ad0u2wBi+ke CjZNLo55YtGxh/kiYyb+afS4gmm+0SF5+NZytwBQJ0NhfV6dW4uFVhVSgU2TMlvFTlJP CBNwaS3+i5xxjMxi3UaZqlHgXKPg+QvnSOQGIE2lJLTinje8Gaff+FgO+l0q0MqMX26l tREXJsJAhFuWGateNzMiIBkjBJPmrd3WWpTJnF87OlZ1yR+BAYkTkic6cG3y2QWHufH7 O5CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720030028; x=1720634828; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=G4R10W5vO+rvcJplFBfBnRiGlw4WwwaRcqmz4KcvBrc=; b=FRdRhDJo0eHl7MLV1onxpeR4AH1XiOw8RfVJCsAcMQ3MUiDn533RT7QSdTascv28cA vwbRh83SmykSTYSmtqB7M54HGOg4DRavH0hXdz38KQlCy57f2iK5Ma87LY5gyfTqt25z +FD9BZtecibWloWsGyKrjCgLflUj6YzkOPYa/GgptvURJJUQnz34Ionr162FOwdy18M7 S3MXXThZsBGTbytd62DThRTXTBNKPnrUsbiHTlbvLsSCm38G4qKxm5YKl/MCDuroQlwK vUolU+nUdwPVipk5EKxvmtKxqB/Dvi8zg18uVUA7s/ri5MBBjDrltPX8SZ44Ozquyurh XLtA== X-Gm-Message-State: AOJu0YzFDe9nIBMqWQ7VDFGz69px9MZ0Oi0/BHkCP8a1Db0481Z33ys5 3wkM9zPXkQg5LqZNYcWEfiZJBJjtBtPxcDL5mwDAtgTpx05wIpR9s1VsP+6/fMTLFWa/lBYlfMu 1oElUmmeRJUxdMu9FVIcmMYKOccpEUW3F X-Google-Smtp-Source: AGHT+IESWEgjODL4PgKAomgc7iSEtkzGk2PAQWiRFxIcVJsN4k5oqjy+H3OmL4IbUP4dcUOFG0GCyrquj4MWIStEcdg= X-Received: by 2002:a05:6214:dc4:b0:6b2:da77:9a42 with SMTP id 6a1803df08f44-6b5b70989ccmr162685646d6.16.1720030028502; Wed, 03 Jul 2024 11:07:08 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: <09559430-4477-4516-8D78-6F4071E1AA6C@newclarity.net> <0182F3D6-F464-477F-9029-A2D0A8B50C71@koalephant.com> <1AFD7AAE-8BEA-460D-88A8-15BB3D30A775@koalephant.com> In-Reply-To: Date: Wed, 3 Jul 2024 14:06:57 -0400 Message-ID: Subject: Re: [PHP-DEV] Iteration III: Packages (was Re: [PHP-DEV] [Initial Feedback] PHP User Modules - An Adaptation of ES6 from JavaScript) To: PHP internals Content-Type: multipart/alternative; boundary="000000000000da21ca061c5bb2dd" From: tendoaki@gmail.com (Michael Morris) --000000000000da21ca061c5bb2dd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jul 3, 2024 at 1:24=E2=80=AFPM Rob Landers wrot= e: > > 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 tha= t > 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. --000000000000da21ca061c5bb2dd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Jul 3, 2024 at 1:24=E2=80=AFPM Ro= b Landers <rob@bottled.codes> wrote:
=

So, if v4 has BC breaks ... how would= Drupal not crash? If you allow multiple versions, how would you use both v= ersions? 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 = 9;twig/twig v4' as NewTwig

That aliases the new version to \NewT= wig\

And you can work with it by addressing the new library at the n= ew namespace.=C2=A0 I'll go through this in more detail in the 4th iter= ation post for this which I'll work on tonight.

--000000000000da21ca061c5bb2dd--