Add symfony/security to dev requirements
Added check for security_context in ContainerEventBus