Fix wrong secret code generated after #412

#412  was missing injection of steps, this change introduces a factory that does the same thing SensioDistributionBundle does at boot time to fix it.

This should fix issue described by @pspanja in https://github.com/ezsystems/ezpublish-community/pull/34