diff --git a/app/Console/Commands/ArtisanUpgrade.php b/app/Console/Commands/ArtisanUpgrade.php index ddbb152c9310..6180ad781c6b 100644 --- a/app/Console/Commands/ArtisanUpgrade.php +++ b/app/Console/Commands/ArtisanUpgrade.php @@ -4,6 +4,8 @@ namespace App\Console\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\Artisan; +use Composer\Console\Application; +use Symfony\Component\Console\Input\ArrayInput; class ArtisanUpgrade extends Command { @@ -38,8 +40,17 @@ class ArtisanUpgrade extends Command */ public function handle() { + set_time_limit(0); + // Composer\Factory::getHomeDir() method + // needs COMPOSER_HOME environment variable set + putenv('COMPOSER_HOME=' . __DIR__ . '/vendor/bin/composer'); + + // call `composer install` command programmatically + $input = new ArrayInput(array('command' => 'install')); + $application = new Application(); + $application->setAutoExit(false); // prevent `$application->run` method from exitting the script + $application->run($input); - exec("composer install"); try { diff --git a/app/Notifications/Admin/EntityViewedNotification.php b/app/Notifications/Admin/EntityViewedNotification.php index 27fffeb36924..e342c39edf53 100644 --- a/app/Notifications/Admin/EntityViewedNotification.php +++ b/app/Notifications/Admin/EntityViewedNotification.php @@ -5,13 +5,17 @@ namespace App\Notifications\Admin; use App\Utils\Number; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; +use Illuminate\Foundation\Bus\Dispatchable; +use Illuminate\Queue\InteractsWithQueue; +use Illuminate\Queue\SerializesModels; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; class EntityViewedNotification extends Notification implements ShouldQueue { - use Queueable; + + use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; /** * Create a new notification instance. diff --git a/app/Notifications/Admin/InvoiceSentNotification.php b/app/Notifications/Admin/InvoiceSentNotification.php index 994abd9d78bb..18c83c54021b 100644 --- a/app/Notifications/Admin/InvoiceSentNotification.php +++ b/app/Notifications/Admin/InvoiceSentNotification.php @@ -5,13 +5,16 @@ namespace App\Notifications\Admin; use App\Utils\Number; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; +use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; +use Illuminate\Queue\InteractsWithQueue; +use Illuminate\Queue\SerializesModels; class InvoiceSentNotification extends Notification implements ShouldQueue { - use Queueable; + use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; /** * Create a new notification instance. diff --git a/app/Notifications/Admin/InvoiceViewedNotification.php b/app/Notifications/Admin/InvoiceViewedNotification.php index f07f7a4d0d57..d940ea14bb22 100644 --- a/app/Notifications/Admin/InvoiceViewedNotification.php +++ b/app/Notifications/Admin/InvoiceViewedNotification.php @@ -5,13 +5,16 @@ namespace App\Notifications\Admin; use App\Utils\Number; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; +use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; +use Illuminate\Queue\InteractsWithQueue; +use Illuminate\Queue\SerializesModels; class InvoiceViewedNotification extends Notification implements ShouldQueue { - use Queueable; + use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; /** * Create a new notification instance. diff --git a/app/Notifications/Admin/NewPartialPaymentNotification.php b/app/Notifications/Admin/NewPartialPaymentNotification.php index ded25364f3e3..27225ab36d8a 100644 --- a/app/Notifications/Admin/NewPartialPaymentNotification.php +++ b/app/Notifications/Admin/NewPartialPaymentNotification.php @@ -6,13 +6,16 @@ use App\Mail\Signup\NewSignup; use App\Utils\Number; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; +use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; +use Illuminate\Queue\InteractsWithQueue; +use Illuminate\Queue\SerializesModels; class NewPartialPaymentNotification extends Notification implements ShouldQueue { - use Queueable; + use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; /** * Create a new notification instance. diff --git a/app/Notifications/Admin/NewPaymentNotification.php b/app/Notifications/Admin/NewPaymentNotification.php index 4c2a28e25939..0cc8000afdaa 100644 --- a/app/Notifications/Admin/NewPaymentNotification.php +++ b/app/Notifications/Admin/NewPaymentNotification.php @@ -6,13 +6,16 @@ use App\Mail\Signup\NewSignup; use App\Utils\Number; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; +use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; +use Illuminate\Queue\InteractsWithQueue; +use Illuminate\Queue\SerializesModels; class NewPaymentNotification extends Notification implements ShouldQueue { - use Queueable; + use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; /** * Create a new notification instance. diff --git a/app/Notifications/ClientContactRequestCancellation.php b/app/Notifications/ClientContactRequestCancellation.php index 80b6b89dc1cb..50cb20fd6608 100644 --- a/app/Notifications/ClientContactRequestCancellation.php +++ b/app/Notifications/ClientContactRequestCancellation.php @@ -5,14 +5,17 @@ namespace App\Notifications; use App\Mail\RecurringCancellationRequest; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; +use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; +use Illuminate\Queue\InteractsWithQueue; +use Illuminate\Queue\SerializesModels; use Illuminate\Support\Facades\Mail; class ClientContactRequestCancellation extends Notification implements ShouldQueue { - use Queueable; + use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; /** * Create a new notification instance. diff --git a/app/Notifications/ClientContactResetPassword.php b/app/Notifications/ClientContactResetPassword.php index 72dec688d2f5..65e8803f161c 100644 --- a/app/Notifications/ClientContactResetPassword.php +++ b/app/Notifications/ClientContactResetPassword.php @@ -3,14 +3,17 @@ namespace App\Notifications; use Illuminate\Bus\Queueable; -use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; +use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Notifications\Messages\MailMessage; +use Illuminate\Notifications\Notification; +use Illuminate\Queue\InteractsWithQueue; +use Illuminate\Queue\SerializesModels; use Illuminate\Support\Facades\Lang; class ClientContactResetPassword extends Notification { - use Queueable; + use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; /** * The password reset token. * diff --git a/app/Notifications/GmailTestNotification.php b/app/Notifications/GmailTestNotification.php index 5c6f39717f16..353dfbbe7081 100644 --- a/app/Notifications/GmailTestNotification.php +++ b/app/Notifications/GmailTestNotification.php @@ -4,12 +4,15 @@ namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; +use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; +use Illuminate\Queue\InteractsWithQueue; +use Illuminate\Queue\SerializesModels; class GmailTestNotification extends Notification implements ShouldQueue { - use Queueable; + use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; /** * Create a new notification instance. diff --git a/app/Notifications/NewAccountCreated.php b/app/Notifications/NewAccountCreated.php index e8d227081dc8..d01afa8914ae 100644 --- a/app/Notifications/NewAccountCreated.php +++ b/app/Notifications/NewAccountCreated.php @@ -5,13 +5,16 @@ namespace App\Notifications; use App\Mail\Signup\NewSignup; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; +use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; +use Illuminate\Queue\InteractsWithQueue; +use Illuminate\Queue\SerializesModels; class NewAccountCreated extends Notification implements ShouldQueue { - use Queueable; + use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; /** * Create a new notification instance. diff --git a/composer.json b/composer.json index e81428d293f9..f6f8f0140971 100644 --- a/composer.json +++ b/composer.json @@ -19,9 +19,11 @@ "type": "project", "require": { "php": ">=7.3", + "ext-json": "*", "anahkiasen/former": "^4.2", "asgrim/ofxparser": "^1.2", "codedge/laravel-selfupdater": "2.5.1", + "composer/composer": "^1.10", "dacastro4/laravel-gmail": "^3.2", "davejamesmiller/laravel-breadcrumbs": "5.x", "fideloper/proxy": "^4.0", @@ -49,8 +51,7 @@ "webpatser/laravel-countries": "dev-master#75992ad", "wildbit/postmark-php": "^2.6", "yajra/laravel-datatables-html": "^4.0", - "yajra/laravel-datatables-oracle": "~9.0", - "ext-json": "*" + "yajra/laravel-datatables-oracle": "~9.0" }, "require-dev": { "ext-json": "*",