Move dependencies call to boot method
Fix #1276 : persistent cookies does not authenticate