App\Http\Controllers\ServersController::__construct PHP Метод

__construct() публичный Метод

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
Результат void
    public function __construct(ServerInterface $server, ServerForm $serverForm)
    {
        $this->middleware('auth');
        $this->middleware('acl');
        $this->server = $server;
        $this->serverForm = $serverForm;
    }