marcojanssen / silex-routing-service-provider

Provider for adding routes
MIT License
19 stars 11 forks source link

Object injection into the constructor #6

Closed achrafsoltani closed 8 years ago

achrafsoltani commented 9 years ago

Hello,

I was wondering if there is a possibility to inject the Request and Application objects directly into the __construct() instead of catching them as method params ?

marcojanssen commented 9 years ago

Not really, that would break the entire way how the provider works in combination with pimple

achrafsoltani commented 9 years ago

well i ended up doing this https://github.com/AchrafSoltani/RoutingServiceProvider