osTicket / roadmap

osTicket Public Roadmap
Creative Commons Attribution 4.0 International
45 stars 6 forks source link

Add Class Aliases #9

Closed aydreeihn closed 2 years ago

aydreeihn commented 2 years ago

Add aliases for classes into app.php so that we can call classes without having to list out the whole path.

Ex: Fields\ClassName::doSomething(); to ClassName::doSomething();

Add to app.php: 'ClassName' => App\Fields\ ClassName::class,

Now the class can be referenced without qualifiers: use ClassName; ... ClassName:: doSomething();

Research if there is a way to automatically pull these into app.php