src/Viserio/Component/Profiler/Provider/ProfilerServiceProvider.php
public static function extendRouter(ContainerInterface $container, ?RouterContract $router = null): RouterContract
    {
        if ($router !== null) {
            $router->group(
                [
                    'namespace' => 'Viserio\Component\Profiler\Controller',
                    'prefix'    => 'profiler',
                ],
                static function ($router): void {
                    $router->get('assets/stylesheets', [
                        'uses' => 'AssetController@css',
                        'as'   => 'profiler.assets.css',
                    ]);
                    $router->get('assets/javascript', [
                        'uses' => 'AssetController@js',
                        'as'   => 'profiler.assets.js',
                    ]);
                }
            );
        }

        return $router;
    }
public static function extendRouter(ContainerInterface $container, ?RouterContract $router = null): RouterContract
    {
        if ($router !== null) {
            $router->group(
                [
                    'namespace' => 'Viserio\Component\Profiler\Controller',
                    'prefix'    => 'profiler',
                ],
                static function ($router): void {
                    $router->get('assets/stylesheets', [
                        'uses' => 'AssetController@css',
                        'as'   => 'profiler.assets.css',
                    ]);
                    $router->get('assets/javascript', [
                        'uses' => 'AssetController@js',
                        'as'   => 'profiler.assets.js',
                    ]);
                }
            );
        }

        return $router;
    }
Register profiler asset controllers.

@param \Psr\Container\ContainerInterface               $container
@param null|\Viserio\Component\Contract\Routing\Router $router

@return null|\Viserio\Component\Contract\Routing\Router