JsonCompiler.php 478 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Aws;
  3. /**
  4. * Loads JSON files and compiles them into PHP arrays.
  5. *
  6. * @internal Please use json_decode instead.
  7. * @deprecated
  8. */
  9. class JsonCompiler
  10. {
  11. const CACHE_ENV = 'AWS_PHP_CACHE_DIR';
  12. /**
  13. * Loads a JSON file from cache or from the JSON file directly.
  14. *
  15. * @param string $path Path to the JSON file to load.
  16. *
  17. * @return mixed
  18. */
  19. public function load($path)
  20. {
  21. return load_compiled_json($path);
  22. }
  23. }