Class 'Symfony\Component\HttpFoundation\ParameterBag' 未找到
Class 'Symfony\Component\HttpFoundation\ParameterBag' not found
当我尝试 运行 php artisan
在 Vagrant box 上全新安装 Laravel 5.1.43 时出现以下错误。我在下面列出了版本。
PHP Fatal error: Class 'Symfony\Component\HttpFoundation\ParameterBag' not found in /var/www/vendor/symfony/http-foundation/Request.php on line 240
PHP Stack trace:
PHP 1. {main}() /var/www/artisan:0
PHP 2. Illuminate\Foundation\Console\Kernel->handle() /var/www/artisan:36
PHP 3. Illuminate\Foundation\Console\Kernel->bootstrap() /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:105
PHP 4. Illuminate\Foundation\Application->bootstrapWith() /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:208
PHP 5. Illuminate\Foundation\Bootstrap\SetRequestForConsole->bootstrap() /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:203
PHP 6. Symfony\Component\HttpFoundation\Request::create() /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/SetRequestForConsole.php:20
PHP 7. Symfony\Component\HttpFoundation\Request::createRequestFromFactory() /var/www/vendor/symfony/http-foundation/Request.php:398
PHP 8. Symfony\Component\HttpFoundation\Request->__construct() /var/www/vendor/symfony/http-foundation/Request.php:1943
PHP 9. Symfony\Component\HttpFoundation\Request->initialize() /var/www/vendor/symfony/http-foundation/Request.php:222
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Symfony\Component\HttpFoundation\ParameterBag' not found
主机:
- macOS 10.13 17A365
- 流浪汉 2.0.0
- 作曲家 1.5.2 2017-09-11 16:59:25
Vagrant 盒子:
- Ubuntu 14.04.5 LTS(GNU/Linux 3.13.0-132-通用 x86_64)
- PHP 5.6.31-6+ubuntu14.04.1+deb.sury.org+1 (cli) 与 Xdebug v2.5.5
如果有帮助,我可以上传我的 Vagrantfile
和 install.sh
文件,还有我的 composer.json
文件。
这是由于 APFS 和 NFS 的一个新错误。参考https://github.com/hashicorp/vagrant/issues/8788获取更多信息
当我尝试 运行 php artisan
在 Vagrant box 上全新安装 Laravel 5.1.43 时出现以下错误。我在下面列出了版本。
PHP Fatal error: Class 'Symfony\Component\HttpFoundation\ParameterBag' not found in /var/www/vendor/symfony/http-foundation/Request.php on line 240
PHP Stack trace:
PHP 1. {main}() /var/www/artisan:0
PHP 2. Illuminate\Foundation\Console\Kernel->handle() /var/www/artisan:36
PHP 3. Illuminate\Foundation\Console\Kernel->bootstrap() /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:105
PHP 4. Illuminate\Foundation\Application->bootstrapWith() /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:208
PHP 5. Illuminate\Foundation\Bootstrap\SetRequestForConsole->bootstrap() /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:203
PHP 6. Symfony\Component\HttpFoundation\Request::create() /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/SetRequestForConsole.php:20
PHP 7. Symfony\Component\HttpFoundation\Request::createRequestFromFactory() /var/www/vendor/symfony/http-foundation/Request.php:398
PHP 8. Symfony\Component\HttpFoundation\Request->__construct() /var/www/vendor/symfony/http-foundation/Request.php:1943
PHP 9. Symfony\Component\HttpFoundation\Request->initialize() /var/www/vendor/symfony/http-foundation/Request.php:222
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Symfony\Component\HttpFoundation\ParameterBag' not found
主机:
- macOS 10.13 17A365
- 流浪汉 2.0.0
- 作曲家 1.5.2 2017-09-11 16:59:25
Vagrant 盒子:
- Ubuntu 14.04.5 LTS(GNU/Linux 3.13.0-132-通用 x86_64)
- PHP 5.6.31-6+ubuntu14.04.1+deb.sury.org+1 (cli) 与 Xdebug v2.5.5
如果有帮助,我可以上传我的 Vagrantfile
和 install.sh
文件,还有我的 composer.json
文件。
这是由于 APFS 和 NFS 的一个新错误。参考https://github.com/hashicorp/vagrant/issues/8788获取更多信息