Re: Re: [RFC] Namespace-scoped declares, again
| From: | Michał Brzuchalski | Date: | Tue, 30 Jul 2019 08:11:51 +0000 |
| Subject: | Re: Re: [RFC] Namespace-scoped declares, again | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-106335@lists.php.net to get a copy of this message | ||
Hi Rowan,
niedz., 28 lip 2019 o 12:15 Rowan Collins <rowan.collins@gmail.com>
napisał(a):
> 1) Packages should be non-hierarchical. Perhaps most simply a package name
> could have exactly two parts, like in composer, so it's clear that there is
> no implied relationship between two packages.
>
IMO this would create a lot of problems cause name in Composer Package
doesn't reflect used namespace declared in autoload, for eg.
Composer package name => used namespace
---
ocramius/package-version => PackageVersions\
doctrine/collections => Doctrine\Common\Collections\
symfony/console => Symfony\Component\Console\
--
regards / pozdrawiam,
--
Michał Brzuchalski
about.me/brzuchal
brzuchalski.com