jdesrosiers / silex-cors-provider

A silex service provider that adds CORS services to silex
MIT License
78 stars 25 forks source link

Explicitly remove _method from requirements #16

Closed cyberwolf closed 9 years ago

cyberwolf commented 9 years ago

To avoid getting E_USER_DEPRECATED warnings with Symfony Routing 2.7+, remove _method from the requirements copied over from the original route(s). It wasn't used anyway, as the required method was already explicitly set to OPTIONS with a call to method('OPTIONS').