added with helper.

This commit is contained in:
Taylor Otwell 2012-02-03 16:00:01 -06:00
parent be144288b3
commit d7fcd74a02
1 changed files with 11 additions and 0 deletions

View File

@ -363,3 +363,14 @@ function value($value)
{ {
return ($value instanceof Closure) ? call_user_func($value) : $value; return ($value instanceof Closure) ? call_user_func($value) : $value;
} }
/**
* Short-cut for constructor method chaining.
*
* @param mixed $object
* @return mixed
*/
function with($object)
{
return $object;
}