protected function registerMiddleware($middleware)
    {
        /** @var Kernel $kernel */
        $kernel = $this->getContainer()->get(KernelInterface::class);
        $kernel->prependMiddleware($middleware);
    }
protected function registerMiddleware($middleware)
    {
        /** @var Kernel $kernel */
        $kernel = $this->getContainer()->get(KernelInterface::class);
        $kernel->prependMiddleware($middleware);
    }
protected function registerMiddleware ( $ middleware ) { /** @var Kernel $kernel */ $ kernel = $ this -> getContainer ( ) -> get ( KernelInterface :: class ) ; $ kernel -> prependMiddleware ( $ middleware ) ; }
Register the Debugbar Middleware

@param  string $middleware
Register the Debugbar Middleware