Created
September 15, 2015 16:01
-
-
Save cweagans/9df375cb217b1fe79367 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 | |
namespace My\Something { | |
class MyClass { | |
public static function my_function() { | |
echo "shutdown function called"; | |
} | |
} | |
} | |
namespace { | |
echo "running"; | |
register_shutdown_function('My\Something\MyClass::my_function'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment