Home > Backend Development > PHP Tutorial > symfony2 打包核心源码bootstrap.php.cache,如何断点看 kernel源码?

symfony2 打包核心源码bootstrap.php.cache,如何断点看 kernel源码?

WBOY
Release: 2016-06-06 20:38:22
Original
1160 people have browsed it

bootstrap.php.cache 在运行composer update或者composer install 的时候由脚本生成,主要的功能是将Symfony中必须要用到的核心类打包到单个文件中,同时提供classloader。

回复内容:

bootstrap.php.cache 在运行composer update或者composer install 的时候由脚本生成,主要的功能是将Symfony中必须要用到的核心类打包到单个文件中,同时提供classloader。

入口文件上
$loader = require_once DIR.'/../app/bootstrap.php.cache';

修改为
$loader = require_once DIR.'/../app/autoload.php';

就可以加载源码了。
cache文件断点非常不方便

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template