Psr7Middlewares\Middleware\TrailingSlash::__construct PHP Method

__construct() public method

Configure whether add or remove the slash.
public __construct ( boolean $addSlash = false )
$addSlash boolean
    public function __construct($addSlash = false)
    {
        $this->addSlash = (bool) $addSlash;
    }