src/mako/commander/CommandBus.php
public function addMiddleware(string $middleware, bool $inner = true): int
	{
		return $inner ? $this->onion->addInnerLayer($middleware) : $this->onion->addOuterLayer($middleware);
	}
public function addMiddleware(string $middleware, bool $inner = true): int
	{
		return $inner ? $this->onion->addInnerLayer($middleware) : $this->onion->addOuterLayer($middleware);
	}
public function addMiddleware ( string $ middleware , bool $ inner = true ) : int { return $ inner ? $ this -> onion -> addInnerLayer ( $ middleware ) : $ this -> onion -> addOuterLayer ( $ middleware ) ; }
Adds middleware.

@param  string $middleware Middleware class
@param  bool   $inner      Add an inner layer?
@return int
Adds middleware .