private function loadMiddleWare(Route $route, $parameters) { $middleWare = $this->loadParameter('stack', $parameters); if (count($middleWare) > 0) { foreach ($middleWare as $key) { $route->add($this->container->get($key)); } } }