Update framework.php

This is static context and `$this` can't be accessed. It is an error.
If there is a need for a static function to get the instance of the framework, `get_instance()` can be safely made static