Add this dependency to your composer.json:
"modera/security-bundle": "dev-master"
Update your AppKernel class and add this:
new Modera\SecurityBundle\ModeraSecurityBundle(),
This bundle is under the MIT license. See the complete license in the bundle: Resources/meta/LICENSE