From 8ccb13b9a4148cea3544db51205536bbbfac13a5 Mon Sep 17 00:00:00 2001 From: Igor Finagin Date: Thu, 28 Mar 2019 14:32:29 +0300 Subject: [PATCH] Moved config to file --- config/tinker.php | 15 +++++++++++++++ src/Console/TinkerCommand.php | 4 +--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/config/tinker.php b/config/tinker.php index 0d2bf00..7da1eef 100644 --- a/config/tinker.php +++ b/config/tinker.php @@ -32,4 +32,19 @@ 'App\Nova', ], + + /* + |-------------------------------------------------------------------------- + | Psy Shell Config + |-------------------------------------------------------------------------- + | + | Optionally, supply an array of configuration values to load. + | + */ + 'config' => [ + + 'updateCheck' => 'never', + + ], + ]; diff --git a/src/Console/TinkerCommand.php b/src/Console/TinkerCommand.php index a6f5727..1fa2597 100644 --- a/src/Console/TinkerCommand.php +++ b/src/Console/TinkerCommand.php @@ -42,9 +42,7 @@ public function handle() { $this->getApplication()->setCatchExceptions(false); - $config = new Configuration([ - 'updateCheck' => 'never' - ]); + $config = new Configuration(config('tinker.config')); $config->getPresenter()->addCasters( $this->getCasters()