converting to httpfoundation response.

This commit is contained in:
Taylor Otwell
2012-03-28 17:11:55 -05:00
parent 573725ade7
commit 89766bef84
4 changed files with 53 additions and 135 deletions

View File

@@ -361,6 +361,17 @@ function str_finish($value, $cap)
return rtrim($value, $cap).$cap;
}
/**
* Determine if the given object has a toString method.
*
* @param object $value
* @return bool
*/
function str_object($value)
{
return is_object($value) and method_exists($value, '__toString');
}
/**
* Get the root namespace of a given class.
*