Example #1
0
 public function createView(Configuration $config, ContainerInterface $container)
 {
     $view = new View();
     $container->eachMarked(function (ViewRendererFactory $factory, BindingInterface $binding) use($view, $container) {
         $view->registerFactory($container->getBound($binding));
     });
     return $view;
 }