'Correct folder for injection class in Slim

I have one routing to a class that implements “Action”. So I placed it in the src\Application\Actions folder.

Also have another routing to a class, but this class does not implement no interface. I use __invoke.

Which is the propper folder for this class in the Slim structure to be placed in? I’m new to Slim

Thanks



Solution 1:[1]

I would place it on src/Application/Actions.

Slim Skeleton is a good inspiration for structure.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 mariosimao