Re: Question about Namespace patch

From: Date: Mon, 23 Jul 2007 07:37:35 +0000
Subject: Re: Question about Namespace patch
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-31167@lists.php.net to get a copy of this message
2) How can I import all classes from a namespace at once?
Use namespace::class.
That's not the answer to the question. Markus was asking how to import *all* classes from a namespace at *once*.
That IS the answer. You don't. You use namespace::class instead. The whole purpose was to get them OUT of the global space, no reason to bring them back in. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#31167) next »