Change getResourceName to static method.

Change \BjyAuthorize\Guard\Controller::getResourceName to static method
for use outside of the class.