public function reset()
    {
        foreach (array_keys($this->_loaded) as $name) {
            $this->unload($name);
        }

        return $this;
    }
public function reset()
    {
        foreach (array_keys($this->_loaded) as $name) {
            $this->unload($name);
        }

        return $this;
    }
public function reset ( ) { foreach ( array_keys ( $ this -> _loaded ) as $ name ) { $ this -> unload ( $ name ) ; } return $ this ; }
Clear loaded instances in the registry.

If the registry subclass has an event manager, the objects will be detached from events as well.

@return $this
Clear loaded instances in the registry .