lib/Weasel/JsonMarshaller/JsonMapper.php
public function registerType($name, $handler, $aliases = array())
    {
        trigger_error("Types are deprecated, use JsonTypes through registerJsonType.", E_USER_DEPRECATED);
        $this->registerJsonType($name, new OldTypeWrapper($handler), $aliases);
    }
public function registerType($name, $handler, $aliases = array())
    {
        trigger_error("Types are deprecated, use JsonTypes through registerJsonType.", E_USER_DEPRECATED);
        $this->registerJsonType($name, new OldTypeWrapper($handler), $aliases);
    }
public function registerType ( $ name , $ handler , $ aliases = array ( ) ) { trigger_error ( "Types are deprecated, use JsonTypes through registerJsonType." , E_USER_DEPRECATED ) ; $ this -> registerJsonType ( $ name , new OldTypeWrapper ( $ handler ) , $ aliases ) ; }
Register an old style custom type.
This is a compatibility handler and will be removed. Please use registerJsonType!
@Deprecated
@param string $name
@param Types\Type $handler
@param string[] $aliases
Register an old style custom type . This is a compatibility handler and will be removed . Please use registerJsonType!