flightphp / core

An extensible micro-framework for PHP
https://docs.flightphp.com
MIT License
2.62k stars 409 forks source link

short name #442

Closed oscarlosan closed 7 months ago

oscarlosan commented 3 years ago

Hello, is there any way to make calls like this: F::get('id');

instead of: Flight::get ('id');

sah-comp commented 3 years ago

Use


class_alias('Flight', 'F'); 

Read about PHP function class_alias in the manual.