Not working if vendor directory is not in server's public directory
Hi, I've installed PHPDebugBar via composer. But my framework core files and my vendor directory are not located in the public dir of the web server, but at a top level which is not publicly accessible. Therefore any of the PHPDebugBar assets are loaded because they are Not Found (404 for each asset). Is it possible to have the assets directory out of the vendor directory ? I could move the assets folder manually but then the composer update workflow will not update automatically the moved assets.
thanks for your help and answers.
I used bower to pull it into my public/bower_components folder but it pulls in the entire PHP source which is unnecessary for the client end and it also seems its not configued to work correctly with bower. I used the --save arg to save it to bower.json but on subsequent attempts to run bower it fails with this error:
bower ENOTFOUND Package maximebf/php-debugbar=maximebf/php-debugbar not found
There are several ways provided to deal with the very common circumstance of the vendor directory being outside of the web: http://phpdebugbar.com/docs/rendering.html#assets
What isn't covered with the available options?
@vik-singh You can work around this by putting something along these lines in your bower.json until it's fixed here: "maximebf-php-debugbar": "https://github.com/maximebf/php-debugbar.git#~1.10.4"
I added AssetHandler and updated docs here: https://php-debugbar.com/docs/rendering/#asset-handler