i trying use grpc in laravel project. this part of composer.json file: "require": { ... "datto/protobuf-php": "dev-master", "google/auth": "^0.7.0", "grpc/grpc": "dev-release-0_13", ... } i have generated php file proto file. placed in app/services/ , included in composer.json autoload.files section. have run composer install without issues. i have created route testing. has following code: $client = new vat_service\vatserviceclient('localhost:50051', [ 'credentials' => grpc\channelcredentials::createinsecure() ]); but receive response class 'grpc\channelcredentials' not found. when visit route. the laravel app running in homestead vagrant box. i don't know how proceed. missing dependency? did miss install something? i have solved problem, not sure of below steps solution. things tried: i installed grpc-beta in homestead box (...
i have written wrapper around qtextedit use qiodevice. want able use multiple wrapper same qtextedit, may use different text color each wrapper. to make wrapper thread-safe added qmutex protect usage of qtextedit. thinking must use 1 mutex protect 1 qtextedit. i end following implementation, using qsharedpointer protect qtextedit. texteditiodevice.h class texteditiodevice : public qiodevice { q_object public: texteditiodevice(qtextedit * qtextedit, qcolor color, qobject * parent); virtual ~texteditiodevice(); protected: qint64 readdata(char *data, qint64 maxlen); qint64 writedata(const char *data, qint64 len); private: /** * @brief pointer qtextedit */ qpointer<qtextedit> textedit; /** * @brief text color */ qcolor color; /** * @brief shared pointer qtextedit associated mutex */ qsharedpointer<qmutex> mutex; /** * @brief storage qtextedit associated mutexes */ sta...
code i have controller method this: @requestmapping("/{userid}/{configid}") def edit(@pathvariable("userid") user user, @pathvariable("configid") configuration configuration) { /* code here*/ } when call method browser works well, , user, , configuration args bind database id. problem but, when used mvcuricomponentsbuilder class, got exceptions incorrect arguments type in expected method. mvcuricomponentsbuilder.frommethodname(mycontroller.class, "edit", 1, 2).build() exception java.lang.illegalargumentexception: source convert must instance of @org.springframework.web.bind.annotation.pathvariable user; instead java.lang.long faced body similar problem? there solution? note : i'm using spring web mvc 4.1.8.release a bit more descriptions i'm using mvcuricomponentsbuilder in thymeleaf template this: th:action="${#mvc.url('cc#edit').arg(0, configuration.access.id).arg(1, configurati...
Comments
Post a Comment