Skip to content

Symfony integration for Kdyby/DateTimeProvider

Pre-release
Pre-release
Compare
Choose a tag to compare
@Majkl578 Majkl578 released this 06 Jun 21:44
· 23 commits to master since this release
56d0a02

First pre-release of Kdyby/DateTimeProviderBundle.

Integration is done by configuring the type parameter:

  • current_time:
    • will register CurrentProvider and provide a current time at call-time
    • this is the default behavior
  • request_time:
    • will register ConstantProvider and provide a fixed time obtained from the request
  • mutable_request_time:
    • will register MutableProvider and provide a fixed time obtained from the request