src/FabricateRegistry.php
public function find($name)
    {
        if ($this->is_registered($name)) {
            return $this->items[$name];
        }
        $model = $this->adaptor->getModel($name);
        if ($model) {
            return $model;
        }
        throw new \InvalidArgumentException("{$name} not registered");
    }
public function find($name)
    {
        if ($this->is_registered($name)) {
            return $this->items[$name];
        }
        $model = $this->adaptor->getModel($name);
        if ($model) {
            return $model;
        }
        throw new \InvalidArgumentException("{$name} not registered");
    }
public function find ( $ name ) { if ( $ this -> is_registered ( $ name ) ) { return $ this -> items [ $ name ] ; } $ model = $ this -> adaptor -> getModel ( $ name ) ; if ( $ model ) { return $ model ; } throw new \ InvalidArgumentException ( "{$name} not registered" ) ; }
Find from registred or model by name

@param string $name model name
@return mixed registerd object
@throws InvalidArgumentException
Find from registred or model by name