jdesrosiers / silex-cors-provider

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

Compatibility with Symfony routing 2.7.x #15

Closed cyberwolf closed 9 years ago

cyberwolf commented 9 years ago

Hi,

I tried upgrading to Symfony routing component 2.7 but the cors provider causes some Deprecated PHP notices:

Deprecated: The "_method" requirement is deprecated since version 2.2 and will be removed in 3.0. Use the setMethods() method instead or the "methods" option in the route definition.

jdesrosiers commented 9 years ago

Use of "_method" was removed in version 0.1.2. The latest version is 0.1.3. I think you just need to update to the latest version.

cyberwolf commented 9 years ago

Hi Jason,

I am using version 0.1.3. Will take a closer look to what exactly is triggering the error and get back to you.

cyberwolf commented 9 years ago

I submitted a pull request: #16

jdesrosiers commented 9 years ago

I see what was happening now. Thanks for figuring it out.