0

When I try to install HWIOAuthBundle I get the following error:

Fatal error: Class 'hwi\oauthbundle\HWI\Bundle\OAuthBundle' not found in C:\xampp\htdocs\prjectName\app\AppKernel.php on line 24

I have reference to documentation, after running the composer , i do get hwi package downloded with path as C:\xampp\htdocs\prjectName\vendor\hwi\oauth-bundle\HWI\Bundle\OAuthBundle but when i include it in the AppKernel.php file as

24th line of AppKernel.php is:

new hwi\oauth-bundle\HWI\Bundle\OAuthBundle(),
55555nam
  • 29
  • 1
  • 6

1 Answers1

0

As the doccumentation says you should register this bundle to appKernel.php by adding

new HWI\Bundle\OAuthBundle\HWIOAuthBundle(),

instead of

new hwi\oauth-bundle\HWI\Bundle\OAuthBundle(),

The path added to the appKernel.php is not the exact path of the bundle where it is added but the namespace + class name of the main bundle's class (which extends Bundle).

Einius
  • 1,352
  • 2
  • 20
  • 45