10.4 introduced breaking changes for dashboard widgets. The necessary changes to stay compatible are done within this commit. No need anymore to configure widget through PHP, instead DI is used. Instead only PHP to provide data is used.
In order to not break layout.
As no configuration API is provided, we use Services.yaml for now.