facebook/phpsh — Issue #22: Namespaces
Author: mediaslave
Created: 2011-11-10 21:04:09+00:00
State: open

phpsh does not allow the 'use' keyword. It seems like we should be able to do:

use com\facebook\ClassName;

=new ClassName;

It would be even better if we can load the namespaces dynamically prior to phpsh running, maybe via a configuration file. We already can include a file:

phpsh 'include-file.php'

Could we include namespaces to 'use' via the configuration file?

Thanks,

Jusitn