src/Factory/RegistryViewFactory.php
public function createView($object)
    {
        if (!is_object($object)) {
            return null;
        }

        foreach ($this->registry as $className => $viewFactory) {

            if ($object instanceof $className) {
                return $viewFactory->createView($object);
            }
        }
    }
public function createView($object)
    {
        if (!is_object($object)) {
            return null;
        }

        foreach ($this->registry as $className => $viewFactory) {

            if ($object instanceof $className) {
                return $viewFactory->createView($object);
            }
        }
    }
public function createView ( $ object ) { if ( ! is_object ( $ object ) ) { return null ; } foreach ( $ this -> registry as $ className => $ viewFactory ) { if ( $ object instanceof $ className ) { return $ viewFactory -> createView ( $ object ) ; } } }
Create a view for the object, looking for a suitable factory

@param $object

@return View
Create a view for the object looking for a suitable factory