Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Create collector via factory got error object as null in call dependency #178

Closed
samsonasik opened this issue Mar 5, 2015 · 3 comments
Closed

Comments

@samsonasik
Copy link
Contributor

Hi,
I'm trying to create collector with factory, but it got error on calling the object dependency like reported here samsonasik/SanSessionToolbar#20 . Probably related with #153 ?

@samsonasik
Copy link
Contributor Author

this is related with https://github.com/zendframework/ZendDeveloperTools/blob/41b74573822468f4b7372b40780852e5cc85c73f/src/ZendDeveloperTools/Profiler.php#L212 , any reason for :

unserialize(serialize($collector))

?

@Ocramius
Copy link
Member

Ocramius commented Apr 6, 2015

The reason for unserialize(serialize($collector)) is that the collectors may be persisted/logged.

While this may seem a dumb idea, that was the initial aim of this package, which I also re-iterated in RoaveDeveloperTools later on.

@samsonasik
Copy link
Contributor Author

closing, should be fixed by #190

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants