Laravel工匠和作曲家的错误

时间:2014-05-12 18:27:22

标签: laravel laravel-4 composer-php

当我在我的机器上运行工匠或作曲家更新时,我会收到此错误:

 $ php artisan 
{"error":{"type":"ErrorException","message":"Argument 1 passed to Illuminate\\Routing\\Router::__construct() must be an instance of Illuminate\\Container\\Container, instance of Illuminate\\Events\\Dispatcher given, called in \/Applications\/MAMP\/htdocs\/magstreet\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/RoutingServiceProvider.php on line 30 and defined","file":"\/Applications\/MAMP\/htdocs\/magstreet\/app\/controllers\/Router.php","line":117}}

此错误最近才出现。我尝试用github上的那个替换我的illuminate / container / container.php,但它没有用。

即使我正在运行作曲家更新,也会发生这种情况:

$ sudo composer update
Password:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
{"error":{"type":"ErrorException","message":"Argument 1 passed to Illuminate\\Routing\\Router::__construct() must be an instance of Illuminate\\Container\\Container, instance of Illuminate\\Events\\Dispatcher given, called in \/Applications\/MAMP\/htdocs\/magstreet\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/RoutingServiceProvider.php on line 30 and defined","file":"\/Applications\/MAMP\/htdocs\/magstreet\/app\/controllers\/Router.php","line":117}}{"error":{"type":"ErrorException","message":"Argument 1 passed to Illuminate\\Routing\\Router::__construct() must be an instance of Illuminate\\Container\\Container, instance of Illuminate\\Events\\Dispatcher given, called in \/Applications\/MAMP\/htdocs\/magstreet\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/RoutingServiceProvider.php on line 30 and defined","file":"\/Applications\/MAMP\/htdocs\/magstreet\/app\/controllers\/Router.php","line":117}}

任何人都可以帮助我吗? 谢谢。

0 个答案:

没有答案