From f3e42384c5183587411d28668cedac9f3e8fe145 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 13 Jun 2016 21:41:09 -0700 Subject: [PATCH] Hardcoded higher PHP execution limits --- app/Console/Commands/ObjectImportCommand.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/ObjectImportCommand.php b/app/Console/Commands/ObjectImportCommand.php index 2ed05f7758..b75315ec1a 100644 --- a/app/Console/Commands/ObjectImportCommand.php +++ b/app/Console/Commands/ObjectImportCommand.php @@ -2,7 +2,6 @@ namespace App\Console\Commands; use Illuminate\Console\Command; -use Illuminate\Support\Facades\Config; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; use League\Csv\Reader; @@ -17,7 +16,14 @@ use App\Models\Manufacturer; use App\Models\Statuslabel; use App\Models\Supplier; use App\Models\User; +use App\Models\CustomField; use DB; +use App\Models\Setting; +use Illuminate\Database\Eloquent\Model; + +ini_set('max_execution_time', 600); //600 seconds = 10 minutes +ini_set('memory_limit', '500M'); + /** * Class ObjectImportCommand */