Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Last active July 6, 2018 07:29
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 cursosdesarrolloweb/0d1751afe12ad590bc0d02e9728e5024 to your computer and use it in GitHub Desktop.
Save cursosdesarrolloweb/0d1751afe12ad590bc0d02e9728e5024 to your computer and use it in GitHub Desktop.
<?php
class Test {
public function __invoke () {
return "Ahora este controlador es invocable!";
}
}
$test = new Test;
echo $test(); // Ahora este controlador es invocable!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment