App\Http\Controllers\ServersController::__construct PHP Method

__construct() public method

Create a new controller instance.
public __construct ( App\Repositories\Server\ServerInterface $server, ServerForm $serverForm ) : void
$server App\Repositories\Server\ServerInterface
$serverForm App\Services\Form\Server\ServerForm
return void
    public function __construct(ServerInterface $server, ServerForm $serverForm)
    {
        $this->middleware('auth');
        $this->middleware('acl');
        $this->server = $server;
        $this->serverForm = $serverForm;
    }