updated-packages
This commit is contained in:
4
vendor/laravel/tinker/.styleci.yml
vendored
Normal file
4
vendor/laravel/tinker/.styleci.yml
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
php:
|
||||
preset: laravel
|
||||
js: true
|
||||
css: true
|
@@ -1,6 +1,6 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) <Taylor Otwell>
|
||||
Copyright (c) Taylor Otwell
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
4
vendor/laravel/tinker/README.md
vendored
4
vendor/laravel/tinker/README.md
vendored
@@ -21,6 +21,10 @@ To get started with Laravel Tinker, simply run:
|
||||
|
||||
From your console, execute the `php artisan tinker` command.
|
||||
|
||||
### Dispatching Jobs
|
||||
|
||||
The `dispatch` helper function and `dispatch` method on the `Dispatchable` class depends on garbage collection to place the job on the queue. Therefore, when using `tinker`, you should use `Bus::dispatch` or `Queue::push` to dispatch jobs.
|
||||
|
||||
## License
|
||||
|
||||
Laravel Tinker is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
|
||||
|
8
vendor/laravel/tinker/composer.json
vendored
8
vendor/laravel/tinker/composer.json
vendored
@@ -11,9 +11,9 @@
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.5.9",
|
||||
"illuminate/console": "~5.1",
|
||||
"illuminate/contracts": "~5.1",
|
||||
"illuminate/support": "~5.1",
|
||||
"illuminate/console": "~5.1|^6.0",
|
||||
"illuminate/contracts": "~5.1|^6.0",
|
||||
"illuminate/support": "~5.1|^6.0",
|
||||
"psy/psysh": "0.7.*|0.8.*|0.9.*",
|
||||
"symfony/var-dumper": "~3.0|~4.0"
|
||||
},
|
||||
@@ -27,7 +27,7 @@
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Tests\\": "tests/"
|
||||
"Laravel\\Tinker\\Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
|
4
vendor/laravel/tinker/config/tinker.php
vendored
4
vendor/laravel/tinker/config/tinker.php
vendored
@@ -28,6 +28,8 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'dont_alias' => [],
|
||||
'dont_alias' => [
|
||||
'App\Nova',
|
||||
],
|
||||
|
||||
];
|
||||
|
@@ -43,7 +43,7 @@ class TinkerCommand extends Command
|
||||
$this->getApplication()->setCatchExceptions(false);
|
||||
|
||||
$config = new Configuration([
|
||||
'updateCheck' => 'never'
|
||||
'updateCheck' => 'never',
|
||||
]);
|
||||
|
||||
$config->getPresenter()->addCasters(
|
||||
@@ -54,7 +54,13 @@ class TinkerCommand extends Command
|
||||
$shell->addCommands($this->getCommands());
|
||||
$shell->setIncludes($this->argument('include'));
|
||||
|
||||
$path = $this->getLaravel()->basePath().DIRECTORY_SEPARATOR.'vendor/composer/autoload_classmap.php';
|
||||
if (isset($_ENV['COMPOSER_VENDOR_DIR'])) {
|
||||
$path = $_ENV['COMPOSER_VENDOR_DIR'];
|
||||
} else {
|
||||
$path = $this->getLaravel()->basePath().DIRECTORY_SEPARATOR.'vendor';
|
||||
}
|
||||
|
||||
$path .= '/composer/autoload_classmap.php';
|
||||
|
||||
$loader = ClassAliasAutoloader::register($shell, $path);
|
||||
|
||||
|
@@ -2,10 +2,10 @@
|
||||
|
||||
namespace Laravel\Tinker;
|
||||
|
||||
use Illuminate\Foundation\Application as LaravelApplication;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Laravel\Lumen\Application as LumenApplication;
|
||||
use Laravel\Tinker\Console\TinkerCommand;
|
||||
use Laravel\Lumen\Application as LumenApplication;
|
||||
use Illuminate\Foundation\Application as LaravelApplication;
|
||||
|
||||
class TinkerServiceProvider extends ServiceProvider
|
||||
{
|
||||
@@ -23,7 +23,7 @@ class TinkerServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$source = realpath($raw = __DIR__ . '/../config/tinker.php') ?: $raw;
|
||||
$source = realpath($raw = __DIR__.'/../config/tinker.php') ?: $raw;
|
||||
|
||||
if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) {
|
||||
$this->publishes([$source => config_path('tinker.php')]);
|
||||
|
Reference in New Issue
Block a user