Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/symfony/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
什么';bootstrap.cache.php的功能是什么?_Php_Symfony_Sylius - Fatal编程技术网

什么';bootstrap.cache.php的功能是什么?

什么';bootstrap.cache.php的功能是什么?,php,symfony,sylius,Php,Symfony,Sylius,我正在阅读Sylius的代码,我知道bootstrap.cache.php中的类已经存在于其他文件中,所以我对bootstrap.cache.php的功能感到困惑 它是Symfony标准版的一部分,将每个请求最常用的类编译成一个文件,如HttpFoundation组件中的类 Symfony使用PSR-0类加载,即每个文件一个类,因此此引导文件将减少文件系统的访问次数

我正在阅读Sylius的代码,我知道
bootstrap.cache.php
中的类已经存在于其他文件中,所以我对
bootstrap.cache.php
的功能感到困惑

它是Symfony标准版的一部分,将每个请求最常用的类编译成一个文件,如HttpFoundation组件中的类

Symfony使用PSR-0类加载,即每个文件一个类,因此此引导文件将减少文件系统的访问次数