php-debugbar
php-debugbar copied to clipboard
Option to embed JS and CSS inline
In my setup the webserver allows public access only to the folder where the front controller is located in (/var/www/html/public). When trying to use php-debugbar it tries to embed JS and CSS files:
<link rel="stylesheet" type="text/css" href="/vendor/maximebf/debugbar/src/DebugBar/Resources/openhandler.css">
<script type="text/javascript" src="/vendor/maximebf/debugbar/src/DebugBar/Resources/vendor/jquery/dist/jquery.min.js"></script>
The problem is that the vendor folder is not publicly accessible (for security reasons) and thus those CSS and JS files cannot be loaded. That is why I would appreciate a setting to embed JS and CSS code inline.
You can dump them directly, see http://phpdebugbar.com/docs/rendering.html#rendering