/**
  * @param Container $container The DI container.
  * @return void
  */
 protected function registerViewServices(Container $container)
 {
     /**
      * The default view instance.
      *
      * @param Container $container A container instance.
      * @return ViewInterface
      */
     $container['view'] = function (Container $container) {
         $view = new GenericView(['logger' => $container['logger'], 'config' => $container['view/config']]);
         $view->setEngine($container['view/engine']);
         return $view;
     };
     /**
      * A PSR-7 renderer, using the default view instance.
      *
      * @param Container $container A container instance.
      * @return Renderer
      */
     $container['view/renderer'] = function (Container $container) {
         $renderer = new Renderer(['view' => $container['view']]);
         return $renderer;
     };
 }
 /**
  * @param array $data Optional. View data.
  * @return ViewInterface
  */
 public function createView(array $data = null)
 {
     $this->logger->warning('Obsolete method createView called.');
     $view = new GenericView(['logger' => $this->logger]);
     if ($data !== null) {
         $view->setData($data);
     }
     return $view;
 }