src/routing.php
private function get_handler_type($handler) {
	if ($handler instanceof \Closure) {
		return 'function';
	}
	if (is_string($handler) == false) {
		return false;
	}
	
	if (strpos($handler, '->')) {
		return 'method';
	}
	if (strpos($handler, '::')) {
		return 'static';
	}
	if ($handler && $this->find_handler_path($handler)) {
		return 'file';
	}
	
	return false;
}
private function get_handler_type($handler) {
	if ($handler instanceof \Closure) {
		return 'function';
	}
	if (is_string($handler) == false) {
		return false;
	}
	
	if (strpos($handler, '->')) {
		return 'method';
	}
	if (strpos($handler, '::')) {
		return 'static';
	}
	if ($handler && $this->find_handler_path($handler)) {
		return 'file';
	}
	
	return false;
}
private function get_handler_type ( $ handler ) { if ( $ handler instanceof \ Closure ) { return 'function' ; } if ( is_string ( $ handler ) == false ) { return false ; } if ( strpos ( $ handler , '->' ) ) { return 'method' ; } if ( strpos ( $ handler , '::' ) ) { return 'static' ; } if ( $ handler && $ this -> find_handler_path ( $ handler ) ) { return 'file' ; } return false ; }
figure out how to run the given handler

there are a few different handlers formats:

- function: an inline function directly handling the request
@note it can call handle() with a new handler of another type ..
.. this might be useful for database lookups

- method:   a method in the format of 'class->method'
the class will be instantiated before invoking the method

- static:   a method in the format of 'class::method'
where the method will be called statically

- file:     a file path (relative to $handler_base_path)
@see $auto_instantiation: it can instantiate a class with the same name

@param  mixed $handler
@return string|boolean the name of the handler from above description ..
.. or false when unknown
figure out how to run the given handler