Update ServiceFactory.php