Skip to content

Commit

Permalink
refactor: move some commands to local environment only (monicahq/chan…
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored May 28, 2023
1 parent 0797a01 commit a79310e
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 85 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Console\Commands;
namespace App\Console\Commands\Local;

use Illuminate\Console\Command;
use Illuminate\Support\Facades\Storage;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Console\Commands;
namespace App\Console\Commands\Local;

use App\Domains\Contact\ManageContact\Services\CreateContact;
use App\Domains\Contact\ManageContactImportantDates\Services\CreateContactImportantDate;
Expand Down
4 changes: 4 additions & 0 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use App\Domains\Contact\ManageReminders\Jobs\ProcessScheduledContactReminders;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use Illuminate\Support\Facades\App;

class Kernel extends ConsoleKernel
{
Expand All @@ -18,6 +19,9 @@ class Kernel extends ConsoleKernel
protected function commands()
{
$this->load(__DIR__.'/Commands');
if (! App::environment('production')) {
$this->load(__DIR__.'/Commands/Local');
}

require base_path('routes/console.php');
}
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"socialiteproviders/linkedin": "^4.2",
"socialiteproviders/microsoft-azure": "^5.1",
"socialiteproviders/twitter": "^4.1",
"stichoza/google-translate-php": "^5.1",
"tightenco/ziggy": "1.5.2",
"uploadcare/uploadcare-php": "^3.2"
},
Expand All @@ -57,7 +56,8 @@
"phpunit/phpunit": "^10.0",
"psalm/plugin-laravel": "^2.0",
"roave/security-advisories": "dev-master",
"spatie/laravel-ignition": "^2.0"
"spatie/laravel-ignition": "^2.0",
"stichoza/google-translate-php": "^5.1"
},
"autoload": {
"psr-4": {
Expand Down
162 changes: 81 additions & 81 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a79310e

Please sign in to comment.