Add InjectFactory.php with automatic calling of inject