update dependencies

use getManager (getEntityManager is deprecated)
use logger instead of event dispatchers in library