Json.php 644 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Zend Framework (http://framework.zend.com/)
  4. *
  5. * @link http://github.com/zendframework/zf2 for the canonical source repository
  6. * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
  7. * @license http://framework.zend.com/license/new-bsd New BSD License
  8. */
  9. namespace Zend\Config\Writer;
  10. use Zend\Json\Json as JsonFormat;
  11. class Json extends AbstractWriter
  12. {
  13. /**
  14. * processConfig(): defined by AbstractWriter.
  15. *
  16. * @param array $config
  17. * @return string
  18. */
  19. public function processConfig(array $config)
  20. {
  21. return JsonFormat::encode($config);
  22. }
  23. }