aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/debugbar.php
blob: a80000d86d89bef62afb208f9d551df9693b7295 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
final class DebugbarController extends Trails_Controller
{
    public function css_action(): void
    {
        $this->set_content_type('text/css;charset=utf-8');
        $this->render_nothing();
        app()->get(DebugBar\DebugBar::class)->getJavascriptRenderer()->dumpCssAssets();
    }

    public function js_action(): void
    {
        $this->set_content_type('text/javascript;charset=utf-8');
        $this->render_nothing();
        app()->get(DebugBar\DebugBar::class)->getJavascriptRenderer()->setIncludeVendors(false)->dumpJsAssets();
    }
}