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