Пример #1
0
 protected function willWriteData(array &$data)
 {
     static $custom;
     if ($custom === null) {
         $custom = $this->getConfigOption(self::CONFIG_APPLICATION_SERIALIZERS);
     }
     if ($custom) {
         foreach ($custom as $key => $serializer) {
             $data[$key] = $serializer->willWriteValue($data[$key]);
         }
     }
     parent::willWriteData($data);
 }