src/mako/onion/Onion.php
protected function buildCoreClosure(object $object): Closure
	{
		return function(...$arguments) use ($object)
		{
			$callable = $object instanceof Closure ? $object : [$object, $this->method];

			return $callable(...$arguments);
		};
	}
protected function buildCoreClosure(object $object): Closure
	{
		return function(...$arguments) use ($object)
		{
			$callable = $object instanceof Closure ? $object : [$object, $this->method];

			return $callable(...$arguments);
		};
	}
protected function buildCoreClosure ( object $ object ) : Closure { return function ( ... $ arguments ) use ( $ object ) { $ callable = $ object instanceof Closure ? $ object : [ $ object , $ this -> method ] ; return $ callable ( ... $ arguments ) ; } ; }
Builds the core closure.

@param  object   $object The object that we're decorating
@return \Closure
Builds the core closure .