工匠未被捕获的异常'ReflectionException'

时间:2014-09-18 16:40:47

标签: php angularjs laravel-4 composer-php

我正在使用https://github.com/Aboalarm/devbox

的devbox运行Ubuntu64 vagrant / virtualbox

此框与此特定软件的其他开发环境一起使用。该应用程序使用angularjs和laravel4。当安装在盒子上时,我可以通过以下方式更新作曲家:

composer update --no-scripts

但没有那个标志,我得到一个PHP致命错误。这是我的composer.json:

{
        "require": {
                "laravel/framework": "dev-master",
                "cartalyst/sentry": "2.1.*",
                "phpunit/phpunit": "3.7.*",
                "mews/phpthumb": "dev-master",
                "tecnick.com/tcpdf": "6.0.059",
                "pda/pheanstalk": "dev-master"
        },
        "autoload": {
                "classmap": [
                        "app/commands",
                        "app/controllers",
                        "app/models",
                        "app/libraries",
                        "app/database/migrations",
                        "app/database/seeds",
                        "app/tests/TestCase.php"
                ]
        },
        "scripts": {
                "post-update-cmd": "php artisan optimize"
        },
        "minimum-stability": "dev"
}

当我放弃--no-scripts标志,或者当我尝试与工匠做任何事情时,即

php artisan migrate

我收到此错误:

PHP Fatal error:  Uncaught exception 'ReflectionException' with message 'Class path.config does not exist' in /var/www/marketing.dev/vendor/laravel/framework/src/Illuminate/Container/Container.php:628
Stack trace:
#0 /var/www/marketing.dev/vendor/laravel/framework/src/Illuminate/Container/Container.php(628): ReflectionClass->__construct('path.config')
#1 /var/www/marketing.dev/vendor/laravel/framework/src/Illuminate/Container/Container.php(550): Illuminate\Container\Container->build('path.config', Array)
#2 /var/www/marketing.dev/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(472): Illuminate\Container\Container->make('path.config', Array)
#3 /var/www/marketing.dev/vendor/laravel/framework/src/Illuminate/Container/Container.php(962): Illuminate\Foundation\Application->make('path.config')
#4 /var/www/marketing.dev/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1011): Illuminate\Container\Container->offsetGet('path.config')
#5 /var/www/marketing.dev/vendor/laravel/framework/src/Illuminate/ in /var/www/marketing.dev/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 628

Web应用程序确实在我的浏览器中加载。但是,我不能做任何工匠特定的事情,比如迁移。任何帮助将不胜感激。

0 个答案:

没有答案