kutny / tracy-bundle

Tracy PHP debugger bundle for Symfony framework
MIT License
28 stars 5 forks source link

Made bundle work with disabled security component #11

Closed mvrhov closed 8 years ago

mvrhov commented 8 years ago

I have a project which doesn't need a security component, so the security is not configured, this in turn disables most services associated with it.

kutny commented 8 years ago

Hi, thanks for this PR. I wanted to do it myself by didn't know how to make the TokenStorage optional (the on-invalid="null" clause). Great solution!

Please just don't use if (null == $this->tokenStorage) { return; } clause and place the same (but negative) condition to the line 31 to extend the if ($this->storeUsernameInServerVariable) condition.

Thanks a lot!