php - Use of aliases to shorten Class namespace -


i have class defined in namespace long name. call writing full name of namespace:

use super\long\name\of\namespace\myclass; $obj = new myclass; 

how can shorten long name of namespace?

i tried following:

use super\long\name\of\namespace short; use short\myclass; $obj = new myclass; 

but myclass not found anymore.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -