added with helper.
This commit is contained in:
parent
be144288b3
commit
d7fcd74a02
|
@ -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;
|
||||||
|
}
|
Loading…
Reference in New Issue