symfony - StofDoctrineExtensionsBundle not found in AppKernel -


i'm using symfony2 v2.1.9 , i'm facing problem while installing stofdoctrineextensionbundle

php fatal error:  class 'stof\doctrineextensionsbundle\stofdoctrineextensionsbundle' not found in c:/wamp/www/symfony/app/appkernel.php on line 23 . 

appkernel.php

<?php  use symfony\component\httpkernel\kernel; use symfony\component\config\loader\loaderinterface;    class appkernel extends kernel {     public function registerbundles()     {         $bundles = array(             new symfony\bundle\frameworkbundle\frameworkbundle(),             new symfony\bundle\securitybundle\securitybundle(),             new symfony\bundle\twigbundle\twigbundle(),             new symfony\bundle\monologbundle\monologbundle(),             new symfony\bundle\swiftmailerbundle\swiftmailerbundle(),             new symfony\bundle\asseticbundle\asseticbundle(),             new doctrine\bundle\doctrinebundle\doctrinebundle(),             new sensio\bundle\frameworkextrabundle\sensioframeworkextrabundle(),             new jms\aopbundle\jmsaopbundle(),             new jms\diextrabundle\jmsdiextrabundle($this),             new jms\securityextrabundle\jmssecurityextrabundle(),               new fos\userbundle\fosuserbundle(),              new stof\doctrineextensionsbundle\stofdoctrineextensionsbundle(),          );          if (in_array($this->getenvironment(), array('dev', 'test'))) {             $bundles[] = new acme\demobundle\acmedemobundle();             $bundles[] = new symfony\bundle\webprofilerbundle\webprofilerbundle();             $bundles[] = new sensio\bundle\distributionbundle\sensiodistributionbundle();             $bundles[] = new sensio\bundle\generatorbundle\sensiogeneratorbundle();          }          return $bundles;     }      public function registercontainerconfiguration(loaderinterface $loader)     {         $loader->load(__dir__.'/config/config_'.$this->getenvironment().'.yml');     } } 

autoload.php

<?php  use doctrine\common\annotations\annotationregistry;  $loader = require __dir__.'/../vendor/autoload.php';  // intl if (!function_exists('intl_get_error_code')) {     require_once __dir__.'/../vendor/symfony/symfony/src/symfony/component/locale/resources/stubs/functions.php';      $loader->add('', __dir__.'/../vendor/symfony/symfony/src/symfony/component/locale/resources/stubs');  }   annotationregistry::registerloader(array($loader, 'loadclass'));  return $loader; 

after installing @ console

loading composer repositories package information updating dependencies (including require-dev) - updating twig/extensions dev-master (5c2d515 => v1.0.0) checking out v1.0.0

vendor/composer/autoload_namespaces.php

<?php  // autoload_namespaces.php generated composer  $vendordir = dirname(dirname(__file__)); $basedir = dirname($vendordir);  return array(     'whiteoctober\\pagerfantabundle' => array($vendordir . '/white-october/pagerfanta-bundle'),     'twig_extensions_' => array($vendordir . '/twig/extensions/lib'),     'twig_' => array($vendordir . '/twig/twig/lib'),     'symfony\\bundle\\swiftmailerbundle' => array($vendordir . '/symfony/swiftmailer-bundle'),     'symfony\\bundle\\monologbundle' => array($vendordir . '/symfony/monolog-bundle'),     'symfony\\bundle\\asseticbundle' => array($vendordir . '/symfony/assetic-bundle'),     'symfony' => array($vendordir . '/symfony/symfony/src'),     'sessionhandlerinterface' => array($vendordir . '/symfony/symfony/src/symfony/component/httpfoundation/resources/stubs'),     'sensio\\bundle\\generatorbundle' => array($vendordir . '/sensio/generator-bundle'),     'sensio\\bundle\\frameworkextrabundle' => array($vendordir . '/sensio/framework-extra-bundle'),     'sensio\\bundle\\distributionbundle' => array($vendordir . '/sensio/distribution-bundle'),     'pagerfanta\\' => array($vendordir . '/pagerfanta/pagerfanta/src'),     'monolog' => array($vendordir . '/monolog/monolog/src'),     'metadata\\' => array($vendordir . '/jms/metadata/src'),     'jms\\securityextrabundle' => array($vendordir . '/jms/security-extra-bundle'),     'jms\\diextrabundle' => array($vendordir . '/jms/di-extra-bundle'),     'jms\\aopbundle' => array($vendordir . '/jms/aop-bundle'),     'fos\\userbundle' => array($vendordir . '/friendsofsymfony/user-bundle'),     'doctrine\\orm' => array($vendordir . '/doctrine/orm/lib'),     'doctrine\\dbal' => array($vendordir . '/doctrine/dbal/lib'),     'doctrine\\common' => array($vendordir . '/doctrine/common/lib'),     'doctrine\\bundle\\doctrinebundle' => array($vendordir . '/doctrine/doctrine-bundle'),     'cg\\' => array($vendordir . '/jms/cg/src'),     'assetic' => array($vendordir . '/kriswallsmith/assetic/src'),     '' => array($basedir . '/src'), ); 

error: class 'xxxbundle' not found in .../app/appkernel.php 

means bundle not installed yet. unexperienced users installation guide missing 1 important point. after adding requirement composer.json have run update command:

php composer.phar update 

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -