Laravel custom artisan command and php extension GnuPG not found -
i making own command in laravel , command class call controller method. this:
public function fire(\bankemailcontroller $bankemailcontroller) { if($this->option('fetch')){ $this->userinformresluts($bankemailcontroller->checkemails()); } }
in checkemails method create new gnupg class:
putenv('gnupghome=/var/www/mbiuro/panel/.gnupg'); $gpg = new gnupg();
calling command prompt error:
[symfony\component\debug\exception\fatalerrorexception] class 'gnupg' not found
php cli uses other php.ini settings unaware. activeting extension in
/etc/php5/cli/php.ini
solved problem. after issue had problem, creating laravel classes. connected old version of laravel 5. solution , related question can found here:
laravel 5: using cache:: or db:: within console kernel's schedule() function
Comments
Post a Comment