Exemplo n.º 1
0
 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));
         }
     }
 }