Dependency injection in shortcodes