update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
13
vendor/laravel/tinker/config/tinker.php
vendored
13
vendor/laravel/tinker/config/tinker.php
vendored
@@ -47,4 +47,17 @@
|
||||
'App\Nova',
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Project Trust Mode
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| PsySH restricts local project features unless your project is trusted.
|
||||
| Set this to "always" to avoid untrusted project warnings in Tinker.
|
||||
| Accepted values: "prompt", "always", "never", true, false, null.
|
||||
|
|
||||
*/
|
||||
|
||||
'trust_project' => env('TINKER_TRUST_PROJECT', 'always'),
|
||||
|
||||
];
|
||||
|
||||
@@ -48,6 +48,9 @@ public function handle()
|
||||
$config = Configuration::fromInput($this->input);
|
||||
$config->setUpdateCheck(Checker::NEVER);
|
||||
|
||||
$appConfig = $this->getLaravel()->make('config');
|
||||
$config->setTrustProject($appConfig->get('tinker.trust_project'));
|
||||
|
||||
$config->getPresenter()->addCasters(
|
||||
$this->getCasters()
|
||||
);
|
||||
@@ -64,10 +67,8 @@ public function handle()
|
||||
|
||||
$path .= '/composer/autoload_classmap.php';
|
||||
|
||||
$config = $this->getLaravel()->make('config');
|
||||
|
||||
$loader = ClassAliasAutoloader::register(
|
||||
$shell, $path, $config->get('tinker.alias', []), $config->get('tinker.dont_alias', [])
|
||||
$shell, $path, $appConfig->get('tinker.alias', []), $appConfig->get('tinker.dont_alias', [])
|
||||
);
|
||||
|
||||
if ($code = $this->option('execute')) {
|
||||
|
||||
Reference in New Issue
Block a user