0

I am new in Symfony. I am trying to setup a Symfony Project (Previously Developed) in my Localhost. In this regard I am getting an error

Fatal error: Class 'FOS\UserBundle\FOSUserBundle' not found in D:\php\htdocs\my_project\app\AppKernel.php on line 22

Could anyone say what is the solution ??

Thanks

julious ceazer
  • 331
  • 2
  • 4
  • 14

3 Answers3

1

appkernel is probably ok, but something went wrong with the install. Remove the folder (vendor/friends... etc) and install it again.

php composer.phar update friendsofsymfony/user-bundle
Alex
  • 5,759
  • 1
  • 32
  • 47
1

Thanks @lxer for your reply. I got following result

D:\php\htdocs\my_project>php D:\php\php\composer.phar update friendsofsymfony /user-bundle Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1

  • symfony/icu v1.2.0 requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.

    • symfony/icu v1.2.0 requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.

    • symfony/icu v1.2.0 requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.

    • Installation request for symfony/icu == 1.2.0.0 -> satisfiable by symfony/ icu[v1.2.0].

julious ceazer
  • 331
  • 2
  • 4
  • 14
  • that seems to be a different issue. (so the FOS stuff is solved.) Set the correct version symfony/icu in the composer file, 1.2.0 is not working for some reason. – Alex May 04 '15 at 21:45
1

Thanks @lxer. I tried your solution and found below results.

D:\php\htdocs\my_project>php D:\php\php\composer.phar update symfony/icu

Loading composer repositories with package information Updating dependencies (including require-dev) - Installing friendsofsymfony/elastica-bundle (dev-master d33c5d0) Cloning d33c5d0ece19f5758f4bc6679f26e4fdd17d7f49

  • Installing friendsofsymfony/user-bundle (dev-master 10894cb) Cloning 10894cba4584c9f37f2f4c374608306fc5761a3f

  • Installing friendsofsymfony/rest-bundle (1.5.3) Downloading: 100%

  • Updating knplabs/doctrine-behaviors dev-master (c78fbb4 => ea0f040)

    [RuntimeException] The .git directory is missing from D:\php\htdocs\iHadis\ihadis\vendor\knpla bs\doctrine-behaviors, see http://getcomposer.org/commit-deps for more information

    update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no- progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [packages1] ... [p ackagesN]

julious ceazer
  • 331
  • 2
  • 4
  • 14