According to PSR-4 <http://www.php-fig.org/psr/psr-4/>
The fully qualified class name MUST have a top-level namespace name,
also known as a "vendor namespace".
Just like how it is being done within MediaWiki core, it seems wise to
keep existing classes without any top-level namespace for backwards
compatibility, while putting any new or substantially refactored class
into a new namespace to make the break more obvious.
Il 28/05/2016 18:02, Cyken Zeraux ha scritto:
Is the reason for the new namespaces for testing, or because the classes
are more suitable to a namespace?
On Sat, May 28, 2016 at 9:15 AM, Ricordisamoa<[email protected]>
wrote:
Withhttps://gerrit.wikimedia.org/r/288633 some new classes in the Babel
extension were put into a new namespace "MediaWiki\Babel\BabelBox".
Legoktm approved but Thiemo Mättig (WMDE) disagrees. PHPUnit tests are
already in namespace "Babel\Tests".
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l