src/Factory/CompositeViewFactory.php
public function createView($object)
    {
        foreach ($this->factories as $factory) {
            $view = $factory->createView($object);

            if (null !== $view) {
                return $view;
            }
        }
    }
public function createView($object)
    {
        foreach ($this->factories as $factory) {
            $view = $factory->createView($object);

            if (null !== $view) {
                return $view;
            }
        }
    }
public function createView ( $ object ) { foreach ( $ this -> factories as $ factory ) { $ view = $ factory -> createView ( $ object ) ; if ( null !== $ view ) { return $ view ; } } }
Create a view for the object, delegating to inner factories

@param $object

@return View
Create a view for the object delegating to inner factories