prismicio / SymfonyBundle

Inntegrates the http://prismic.io php-kit with the Symfony Framework
http://prismic.io
8 stars 11 forks source link

Using request_stack to get current request and removed request scope. #12

Closed robinvdvleuten closed 10 years ago

robinvdvleuten commented 10 years ago

Since SF 2.4 (the minimum of this bundle in composer.json) a best practice is to use the _requeststack instead of the request service. This also helps with some DI/scope related things because the request scope can be removed from the service.

robinvdvleuten commented 10 years ago

O and it helps with mocking the PrismicContext instance.