1717 * @subpackage Adapter
1818 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
1919 * @license http://framework.zend.com/license/new-bsd New BSD License
20- * @version $Id$
2120 */
2221
2322/**
2625namespace Zend \Serializer \Adapter ;
2726
2827use Zend \Serializer \Exception as SerializationException ,
29- Zend \Amf \Parser as AMFParser ;
28+ Zend \Amf \Parser as AmfParser ;
3029
3130/**
3231 * @uses Zend\Amf\Parser\Amf0\Deserializer
4140 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
4241 * @license http://framework.zend.com/license/new-bsd New BSD License
4342 */
44- class AMF0 extends AbstractAdapter
43+ class Amf0 extends AbstractAdapter
4544{
4645 /**
4746 * Serialize a PHP value to AMF0 format
@@ -54,8 +53,8 @@ class AMF0 extends AbstractAdapter
5453 public function serialize ($ value , array $ opts = array ())
5554 {
5655 try {
57- $ stream = new AMFParser \OutputStream ();
58- $ serializer = new AMFParser \Amf0 \Serializer ($ stream );
56+ $ stream = new AmfParser \OutputStream ();
57+ $ serializer = new AmfParser \Amf0 \Serializer ($ stream );
5958 $ serializer ->writeTypeMarker ($ value );
6059 return $ stream ->getStream ();
6160 } catch (\Exception $ e ) {
@@ -74,8 +73,8 @@ public function serialize($value, array $opts = array())
7473 public function unserialize ($ value , array $ opts = array ())
7574 {
7675 try {
77- $ stream = new AMFParser \InputStream ($ value );
78- $ deserializer = new AMFParser \Amf0 \Deserializer ($ stream );
76+ $ stream = new AmfParser \InputStream ($ value );
77+ $ deserializer = new AmfParser \Amf0 \Deserializer ($ stream );
7978 return $ deserializer ->readTypeMarker ();
8079 } catch (\Exception $ e ) {
8180 throw new SerializationException ('Unserialization failed by previous error ' , 0 , $ e );
0 commit comments