-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
How about using ::namespace for namespace resolution just like ::class?
Example:
<?php namespace de\thekid\dialog;
// Currently, using the dotted syntax
$api= new RestApi(new ResourcesIn('de.thekid.dialog.api'));
// The PHP way
$api= new RestApi(new ResourcesIn(__NAMESPACE__.'\\api'));
// Suggestion
$api= new RestApi(new ResourcesIn(api::namespace));This would simply be emitted as ::class, which already does everything we want; however, using api::class in this place doesn't convey the intent correctly!