2015-12-24 11 views
11

Jedes Mal, wenn ich versuche, Komponist Update auszuführen ich mit einer Ursache für die folgendenLaravel 5,1-5,2 Komponist Update Fehler

Call to undefined Methode Illuminate \ Bus \ Dispatcher einen Fehler jetzt erhalten :: mapUsing()

Ich kann bestätigen, Laravel 5.2 ist ordnungsgemäß installiert, wie alle anderen Abhängigkeiten sind. Dies geschieht nur, wenn php artisan clear-compiled ausgeführt wird.

Ich habe meine Basis-Controller auch

im Laracasts Forum vor von ein paar Stunden, basierend auf einem Vorschlag aktualisiert
use Illuminate\Foundation\Bus\DispatchesJobs; 
use Illuminate\Routing\Controller as BaseController; 
use Illuminate\Foundation\Validation\ValidatesRequests; 
use Illuminate\Foundation\Auth\Access\AuthorizesRequests; 

abstract class Controller extends BaseController 
{ 
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests; 
} 

Aber ich erhalte noch die Störung

UPDATE: Dies geschieht, wenn die Anwendung ist Bootstrapped überhaupt. Meine App wird jetzt nicht einmal ausgeführt.

UPDATE 2, volle Stack-Trace:

PHP Fatal error: Call to undefined method Illuminate\Bus\Dispatcher::mapUsing() in /Users/Zara/Web/cafe/app/Providers/BusServiceProvider.php on line 16 
PHP Stack trace: 
PHP 1. {main}() /Users/Zara/Web/cafe/artisan:0 
PHP 2. Illuminate\Foundation\Console\Kernel->handle() /Users/Zara/Web/cafe/artisan:36 
PHP 3. Illuminate\Foundation\Console\Kernel->bootstrap() /Users/Zara/Web/cafe/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:105 
PHP 4. Illuminate\Foundation\Application->bootstrapWith() /Users/Zara/Web/cafe/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:208 
PHP 5. Illuminate\Foundation\Bootstrap\BootProviders->bootstrap() /Users/Zara/Web/cafe/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:203 
PHP 6. Illuminate\Foundation\Application->boot() /Users/Zara/Web/cafe/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17 
PHP 7. array_walk() /Users/Zara/Web/cafe/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:718 
PHP 8. Illuminate\Foundation\Application->Illuminate\Foundation\{closure}() /Users/Zara/Web/cafe/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:718 
PHP 9. Illuminate\Foundation\Application->bootProvider() /Users/Zara/Web/cafe/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:717 
PHP 10. Illuminate\Container\Container->call() /Users/Zara/Web/cafe/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:734 
PHP 11. call_user_func_array:{/Users/Zara/Web/cafe/vendor/laravel/framework/src/Illuminate/Container/Container.php:507}() /Users/Zara/Web/cafe/vendor/laravel/framework/src/Illuminate/Container/Container.php:507 
PHP 12. Cafe\Providers\BusServiceProvider->boot() /Users/Zara/Web/cafe/vendor/laravel/framework/src/Illuminate/Container/Container.php:507 



    [Symfony\Component\Debug\Exception\FatalErrorException] 
    Call to undefined method Illuminate\Bus\Dispatcher::mapUsing() 
+0

Sieht aus wie entfernt Taylor 'mapUsing()' in diesem begehen: https://github.com/laravel/framework/commit/c659d98d14be053ca384a9cf63cb3ba9a64adc87 –

+0

dies überprüfen: http://stackoverflow.com/questions/34395129/fatal-error -while-upgrade-laravel-5-1-zu-5-2 –

+0

Dank @HardyMathew, aber ich habe bereits die Dienstleister entfernt. Immer noch keine Würfel – Zarathuztra

Antwort

7

Vom Laravel 5.2 Upgrade Guide

separate Befehle & Handlers

Der jetzt Laravel 5.2 Kommando-Bus unterstützt nur die Selbstabfertigung Befehle und unterstützt keine separaten Befehle und Handler mehr.

Wenn Sie separate Befehle und Handler fortsetzen möchten verwenden, können Sie eine Laravel Collective-Paket installieren, die für diese rückwärtskompatibel Unterstützung bietet: https://github.com/LaravelCollective/bus

Es ist nicht mehr Unterstützung für nicht selbst Handhabung Befehle, die ist, wofür der Mapper sein würde; Zuordnen von Befehlen zu Handlern.

prüfen Dienstleister

Überprüfen Sie alle Service-Provider Sie sich registriert haben, um sicherzustellen, dass sie nicht diese Methode auf Dispatcher aufrufen. Wenn dieses Problem weiterhin besteht, können Sie versuchen, alle Paketdienstanbieter zu überprüfen, um sicherzustellen, dass sie diese Methode nicht aufrufen.

+0

Das ist die Sache, warum muss ich dieses Paket installieren, wenn ich ein separates Upgrade durchführe, wenn ich es nicht benutzt habe? – Zarathuztra

+0

Die Installation behebt das Problem nicht. – Zarathuztra

+0

Woher kommt der Fehler? Etwas versucht diese Methode zu nennen. – lagbox

Verwandte Themen