composer php - symfony 2.7 base bundle class not found in AppKernel -
i've created symfony 2.7 bundle via generator command , got generated under src/bundle/bundlename, want use bundle via composer able use in project moved bundle files created composer.json bundle
{ "name" : "extremesolution/payment-handler-vodafone-bundle", "type" : "symfony-bundle", "description": "vodafone redpoints payment handler bundle", "authors": [ { "name": "hazem taha", "email": "hazem.taha@extremesolution.com" } ], "require" : { "php": "^5.5" }, "require-dev": { "phpunit/phpunit": "~3.7" }, "autoload" : { "psr-4" : { "extremesolution\\bundle\\extremesolutionpaymenthandlervodafonebundle\\" : "" } } }
and pushed bitbucket private repo , required bundle inside project composer.json , provided repository url , registered bundle inside appkernel.php
new extremesolution\bundle\paymenthandlervodafonebundle\extremesolutionpaymenthandlervodafonebundle()
however whenever run composer update
[runtimeexception]
error occurred when executing "'cache:clear --no-warmup'" command:
fatal error: class 'extremesolution\bundle\paymenthandlervodafonebundle\extremesolutionpaymenthandlervodafonebundle' not found in /home/kan/symfony_
trials/payment-example/app/appkernel.php on line 25
php fatal error: class 'extremesolution\bundle\paymenthandlervodafonebundle\extremesolutionpaymenthandlervodafonebundle' not found in /home/kan/sym
fony_trials/payment-example/app/appkernel.php on line 25
.
i'm using php version 5.5.38 via phpbrew, composer version 1.2.1, , symfony 2.7
am missing ? there custom configuration bundles used via composer ?
in composer.json
file, configured psr-4 namespace prefix extremesolution\\bundle\\extremesolutionpaymenthandlervodafonebundle\\
. however, according error message, trying load class extremesolution\bundle\paymenthandlervodafonebundle\extremesolutionpaymenthandlervodafonebundle
(notice missing extremesolution
part).
Comments
Post a Comment