Re: Iteration III: Packages (was Re: [PHP-DEV] [Initial Feedback] PHP User Modules - An Adaptation of ES6 from JavaScript)
| From: | Dusk | Date: | Mon, 01 Jul 2024 17:07:27 +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 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-124151@lists.php.net to get a copy of this message | ||
On Jul 1, 2024, at 09:22, Mike Schinkel <mike@newclarity.net> wrote:
> 2. Autoloading effectively necessitates that every symbol be in its own separate file.
How so? While Composer "recommends" PSR4 autoloading with one class per file, other
configurations are entirely possible, either with Composer's autoload.classmap (which uses a
precomputed class -> filename table), or with a custom autoloader.