symplify / coding-standard

Coding Standard rules for PHP projects with focus on Clean Architecture
MIT License
347 stars 20 forks source link

Directions on how to use this with CS Fixer #56

Closed mdk999 closed 3 weeks ago

mdk999 commented 3 weeks ago

Hi. I found this previous issue https://github.com/symplify/coding-standard/issues/52 but it seems to involve modifying vendor files to get it working. I was wondering if you had a different approach to use this with cs fixer. You mentioned you used Laravel, however the project that I'd be using this with does not utilize Laravel. Any direction, thoughts, links on how to pull these fixers into cs fixer would be helpful - Thank you

TomasVotruba commented 3 weeks ago

Hi,

ECS is using container out of the box, and that's how we use Symplify CS there. To achieve the same result in other tools, there is no other way than using DI container (Laravel, pimple, manual etc.).