fadrian06

Results 19 comments of fadrian06

Here is another example of the requested behavior ```php Flight::route('/posts', PostController::class); ``` ```php class PostController { static function index(): void {} static function show(string $id): void {} } ``` Flight...

> Hi, > maybe i am late to the party, however would be better to use > > ```php > Flight::resource('/posts', PostController::class); > ``` > > Like Laravel and CI4...

Ok to start the tests for php 8 are excluded from the main suite, I run the tests of that specific class by hand

Calling the app directly instead of __callStatic does make sense because it would help the static analyzer

![20240223_015803.jpg](https://github.com/flightphp/core/assets/109766973/385d49d8-6cb1-47af-8482-a0c92fa5af04) ![20240223_015800.jpg](https://github.com/flightphp/core/assets/109766973/c9264bf4-7b00-41ab-808f-6122e5195a15)

I have several ideas to solve it but I don't know how difficult it is to implement it and keep everything working as is. - Extract shared functionalities into traits...

I feel that the PR has covered something else related to the container, but I felt that I should fix it before dealing with other things.

Changes about the container ## Before If you install a psr11 compatible container, and pass it to `Flight::registerContainerHandler($container)`, works only if a class you have previously registered in the container....