예제 #1
0
 public function push(Middleware $newMiddleware)
 {
     $newMiddleware->setApplication($this);
     $newMiddleware->setNextMiddleware($this->middleware[0]);
     array_unshift($this->middleware, $newMiddleware);
 }