Skip to content

Instantly share code, notes, and snippets.

@mergeweb
Created October 16, 2015 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mergeweb/99699b30d816e2710bdf to your computer and use it in GitHub Desktop.
Save mergeweb/99699b30d816e2710bdf to your computer and use it in GitHub Desktop.
if (isset($attachment['transformers'][$class])) {
return new $attachment['transformers'][$class]($options);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment