Hello, i want to assign each request a unique ID so i could monitor it in the Log. What would be the best way to do it in Phalcon?
Actually i generate the ID with uniqid function and try to apply it with Filters... But it seems too strange a such roundtrip with filters...
i just need to have a new globally-request accessible var generated on request entry (actually i do this in public/index.php) ...
[edit] Just now i've changed it to a more maintenable way. I'm using a custom service instantiated and injected directly in the DI, not shared.
Do you suggest a better way?