I want to create my own bundles in Sylius. I created in the directory src and named App like that
src
Sylius
.......
App
Bundle
ShopBundle
AppShopBundle.php
In this file, I wrote very simple:
namespace App\Bundle\ShopBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class AppShopBundle extends Bundle
{
}
And I registered this bundle in AppKernel.php
$bundles = array(
new App\Bundle\ShopBundle\AppShopBundle()
);
But when I run the site, I have an exception. I don't understand the problem here, anyone can help me ?
ClassNotFoundException in AppKernel.php line 28:
Attempted to load class "AppShopBundle" from namespace "App\Bundle\ShopBundle".
Did you forget a "use" statement for "App\Bundle\ShopBundle\AppShopBundle"?