php-debugbar icon indicating copy to clipboard operation
php-debugbar copied to clipboard

Option to embed JS and CSS inline

Open janwalther opened this issue 8 years ago • 1 comments

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.

janwalther avatar Apr 26 '17 20:04 janwalther

You can dump them directly, see http://phpdebugbar.com/docs/rendering.html#rendering

barryvdh avatar Apr 26 '17 21:04 barryvdh