Composer php Symfony2-找不到PHP致命错误类
我的symfony2项目有一种奇怪的行为。几天前,我尝试添加一个自定义表单侦听器,但失败了,因为symfony没有找到名称空间。Composer php Symfony2-找不到PHP致命错误类,composer-php,bundle,symfony-2.7,Composer Php,Bundle,Symfony 2.7,我的symfony2项目有一种奇怪的行为。几天前,我尝试添加一个自定义表单侦听器,但失败了,因为symfony没有找到名称空间。 composer require ddeboer/vatin-bundle php app/console cache:clear --env=prod PHP Fatal error: Class 'Ddeboer\VatinBundle\DdeboerVatinBundle' not found in ../app/AppKernel.php on line
composer require ddeboer/vatin-bundle
php app/console cache:clear --env=prod
PHP Fatal error: Class 'Ddeboer\VatinBundle\DdeboerVatinBundle' not found in ../app/AppKernel.php on line 24
{
"name": "Admin/myproject",
"license": "proprietary",
"type": "project",
"autoload": {
"psr-0": {
"": "src/",
"SymfonyStandard": "app/"
}
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.7.*",
"doctrine/orm": "~2.2,>=2.2.3,<2.5",
"doctrine/dbal": "<2.5",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~3.0,>=3.0.12",
"sensio/framework-extra-bundle": "~3.0,>=3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"friendsofsymfony/elastica-bundle": "^3.2",
"elasticsearch/elasticsearch": "~1.0",
"cocur/slugify": "^2.0",
"ddeboer/vatin-bundle": "^2.0"
},
"require-dev": {
"sensio/generator-bundle": "~2.3",
"phpdocumentor/phpdocumentor": "~2.2"
},
"scripts": {
"post-root-package-install": [
"SymfonyStandard\\Composer::hookRootPackageInstall"
],
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
]
},
"config": {
"bin-dir": "bin"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
}
}