Update EventManagerFactory.php