Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

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