/** * Unregister a new stream wrapper * @param WrapperInterface $wrapper The wrapper to be added * @return boolean True on success and False on failure */ public function unregister(WrapperInterface $wrapper) { $protocol = $wrapper->getProtocol(); if (!$this->has($protocol)) { return false; } stream_wrapper_unregister($protocol); if ($this->isBuiltIn($protocol)) { $this->restore($protocol); } return true; }
/** * Add already created Service Class to Collection * * @param WrapperInterface $wrapper * * @return bool true */ protected function add(WrapperInterface $wrapper) { $this->container[$wrapper->getName()] = $wrapper; return true; }