Created
December 20, 2010 04:56
-
-
Save anandkunal/748035 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ToroHook::add('before_request', function() { echo 'Before Request'; }); | |
ToroHook::add('after_request', function() { echo 'After Request'; }); | |
class SomeHandler extends ToroHandler { | |
public function __construct() { | |
ToroHook::add('before_handler', function() { echo 'Before Handler'; }); | |
ToroHook::add('after_handler', function() { echo 'After Handler'; }); | |
} | |
public function get() { | |
echo 'I am the handler.'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment