public final function callCallback($callbackString, array $args = null) { $output = $this->layoutDispatcher->dispatch($callbackString, $args); if (true === $output instanceof Renderable) { $output = $output->render(); } return $output; }
public function testIfDefaultMethodIsCalled() { $layout = new Layout(new Container()); $this->assertTrue($layout->dispatch('DeSmartLayoutStubsDispatchStub')); }