protected function getClassClosure($controller)
	{
		$me = $this;

		// Here we'll get an instance of this controller dispatcher and hand it off to
		// the Closure so it will be used to resolve the class instances out of our
		// IoC container instance and call the appropriate methods on the class.
		$d = $this->getControllerDispatcher();

		return function() use ($me, $d, $controller)
		{
			$route = $me->current();

			$request = $me->getCurrentRequest();

			// Now we can split the controller and method out of the action string so that we
			// can call them appropriately on the class. This controller and method are in
			// in the Class@method format and we need to explode them out then use them.
			list($class, $method) = explode('@', $controller);

			return $d->dispatch($route, $request, $class, $method);
		};
	}
protected function getClassClosure($controller)
	{
		$me = $this;

		// Here we'll get an instance of this controller dispatcher and hand it off to
		// the Closure so it will be used to resolve the class instances out of our
		// IoC container instance and call the appropriate methods on the class.
		$d = $this->getControllerDispatcher();

		return function() use ($me, $d, $controller)
		{
			$route = $me->current();

			$request = $me->getCurrentRequest();

			// Now we can split the controller and method out of the action string so that we
			// can call them appropriately on the class. This controller and method are in
			// in the Class@method format and we need to explode them out then use them.
			list($class, $method) = explode('@', $controller);

			return $d->dispatch($route, $request, $class, $method);
		};
	}
protected function getClassClosure ( $ controller ) { $ me = $ this ; // Here we'll get an instance of this controller dispatcher and hand it off to // the Closure so it will be used to resolve the class instances out of our // IoC container instance and call the appropriate methods on the class. $ d = $ this -> getControllerDispatcher ( ) ; return function ( ) use ( $ me , $ d , $ controller ) { $ route = $ me -> current ( ) ; $ request = $ me -> getCurrentRequest ( ) ; // Now we can split the controller and method out of the action string so that we // can call them appropriately on the class. This controller and method are in // in the Class@method format and we need to explode them out then use them. list ( $ class , $ method ) = explode ( '@' , $ controller ) ; return $ d -> dispatch ( $ route , $ request , $ class , $ method ) ; } ; }
Get the Closure for a controller based action.

@param  string  $controller
@return \Closure
Get the Closure for a controller based action .