{"action":"created","issue":{"url":"https://api.github.com/repos/goaop/framework/issues/238","labels_url":"https://api.github.com/repos/goaop/framework/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/goaop/framework/issues/238/comments","events_url":"https://api.github.com/repos/goaop/framework/issues/238/events","html_url":"https://github.com/goaop/framework/issues/238","id":107323146,"number":238,"title":"Overriding \\DateTime object ?","user":{"login":"gmorel","id":2279794,"avatar_url":"https://avatars.githubusercontent.com/u/2279794?v=3","gravatar_id":"","url":"https://api.github.com/users/gmorel","html_url":"https://github.com/gmorel","followers_url":"https://api.github.com/users/gmorel/followers","following_url":"https://api.github.com/users/gmorel/following{/other_user}","gists_url":"https://api.github.com/users/gmorel/gists{/gist_id}","starred_url":"https://api.github.com/users/gmorel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmorel/subscriptions","organizations_url":"https://api.github.com/users/gmorel/orgs","repos_url":"https://api.github.com/users/gmorel/repos","events_url":"https://api.github.com/users/gmorel/events{/privacy}","received_events_url":"https://api.github.com/users/gmorel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/goaop/framework/labels/Support","name":"Support","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-19T10:15:18Z","updated_at":"2015-12-16T08:57:02Z","closed_at":null,"body":"Hi\r\n\r\nFirst of all,  thanks for this amazing work. Your framework looks very promising.\r\n\r\n\r\nWe are trying to use GO-AOP in order to allow us [injecting Time at runtime](https://github.com/rezzza/TimeTraveler/pull/22).\r\n\r\nAim being to be able to change the PHP time during our test suits (Unit and Functional). Consequently allowing us to reflect a real use case involving time (booking concurrency, time interval, time travelling, etc..).\r\n\r\nFor this we need to be able to override native PHP functions behaviour such as `time()`. And to override native PHP objects such as `\\DateTime`.\r\n\r\nThe former is working [very well](http://go.aopphp.com/blog/2013/08/24/intercepting-execution-of-system-functions-in-php/). However we can't manage to override `\\DateTime`.\r\n\r\nWe might are doing it wrong. But first is that possible to intercept `\\DateTime` ? \r\n\r\nKeep up the good work !"},"comment":{"url":"https://api.github.com/repos/goaop/framework/issues/comments/165036854","html_url":"https://github.com/goaop/framework/issues/238#issuecomment-165036854","issue_url":"https://api.github.com/repos/goaop/framework/issues/238","id":165036854,"user":{"login":"gmorel","id":2279794,"avatar_url":"https://avatars.githubusercontent.com/u/2279794?v=3","gravatar_id":"","url":"https://api.github.com/users/gmorel","html_url":"https://github.com/gmorel","followers_url":"https://api.github.com/users/gmorel/followers","following_url":"https://api.github.com/users/gmorel/following{/other_user}","gists_url":"https://api.github.com/users/gmorel/gists{/gist_id}","starred_url":"https://api.github.com/users/gmorel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmorel/subscriptions","organizations_url":"https://api.github.com/users/gmorel/orgs","repos_url":"https://api.github.com/users/gmorel/repos","events_url":"https://api.github.com/users/gmorel/events{/privacy}","received_events_url":"https://api.github.com/users/gmorel/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T08:57:02Z","updated_at":"2015-12-16T08:57:02Z","body":"Unfortunately I didn't manage to get something satisfying regarding our constraints. \r\nSo I dropped it, sorry.\r\n\r\n\r\nYou can close the issue.\r\n\r\nKeep up the good work !"}}