biurad / poakium

A Monorepo for Full-stack PHP independent libraries. (metapackage)
MIT License
2 stars 0 forks source link

[Annotations] Improve performance & coding standard #21

Closed divineniiquaye closed 1 year ago

divineniiquaye commented 1 year ago

Is there an existing feature for this?

Proposal or Solution

Loading php files do not work sometimes. Since classes been fetched for loading ain't cached, dependency injections are sometimes used to make it a bit faster to fetching annotations/attributes.

When a class is already fetched or loaded by PHP, requiring the same class file fails or not included at all. I suggest the use of PHP tokenizer to find class names from PHP files.

I again suggest since annotations library was imported as independent into Poakium. The coding standard should change to that of Poakiums'.

Code of Conduct