code: public function removeExtension($extension)
      {
          if ($extension instanceof ExtensionInterface) {
             $extension = $extension->getName();
          }
  
          $this->extensions->remove($extension);
  
          return $this;
      }
docs: @param string|object $extension
  
  @return Ciconia