code/object/config/factory.php
public function registerFormat($format, $class)
    {
        if(!class_exists($class, true)) {
            throw new \InvalidArgumentException('Class : '.$class.' cannot does not exist.');
        }

        $this->_formats[$format] = $class;

        //In case the format is being re-registered clear the prototype
        if(isset($this->__prototypes[$format])) {
            unset($this->__prototypes[$format]);
        }

        return $this;
    }
public function registerFormat($format, $class)
    {
        if(!class_exists($class, true)) {
            throw new \InvalidArgumentException('Class : '.$class.' cannot does not exist.');
        }

        $this->_formats[$format] = $class;

        //In case the format is being re-registered clear the prototype
        if(isset($this->__prototypes[$format])) {
            unset($this->__prototypes[$format]);
        }

        return $this;
    }
public function registerFormat ( $ format , $ class ) { if ( ! class_exists ( $ class , true ) ) { throw new \ InvalidArgumentException ( 'Class : ' . $ class . ' cannot does not exist.' ) ; } $ this -> _formats [ $ format ] = $ class ; //In case the format is being re-registered clear the prototype if ( isset ( $ this -> __prototypes [ $ format ] ) ) { unset ( $ this -> __prototypes [ $ format ] ) ; } return $ this ; }
Register config format

@param string $format The name of the format
@param mixed  $class Class name
@throws \InvalidArgumentException If the class does not exist
@return ObjectConfigFactory
Register config format