protected function bootMiddleWares()
    {
        if (isset($this->middleWares['boot']) && count($this->middleWares['boot'])) {
            foreach ($this->middleWares['boot'] as $middleware => $handler) {
                $this->container->call([$this->container->make($middleware), $handler]);
            }

            return [];
        }

        /**
         * Framework development mood.
         */
        $CSRFProtection = $this->container->make(CSRFProtection::class);

        return $this->container->call([$CSRFProtection, 'handle']);
    }