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
Merge pull request #1368 from afurculita/patch-1

Update framework.php