Example #1
0
 /**
  * Removes the registered environment from the Application.
  *
  * @param String $name - the environment name
  * @return Application
  * @author Dan Cox
  */
 public function deregisterEnvironment($name)
 {
     if ($this->envCollection->exists($name)) {
         $this->envCollection->remove($name);
         return $this;
     }
     // Throw exception
     throw new UnknownEnvironment($name);
 }