updated backend

This commit is contained in:
Torsten 2020-01-17 10:58:01 +01:00
parent 1fea0f4fe7
commit 11521c2339
3459 changed files with 72735 additions and 168535 deletions

View file

@ -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('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);

View file

@ -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')]);