Sylius / PluginSkeleton

Skeleton for starting Sylius plugins.
https://sylius.com/plugins/
73 stars 63 forks source link

Unable to add plugin in bundles.php #360

Closed Darpen closed 1 year ago

Darpen commented 1 year ago

Hi, I followed the documentation and change everything in my composer.json and rename plugin and extension. I call my plugin in the sylius application composer.json, add it in the vendor. But when i add my plugin path in bundles.php, I always have :

Attempted to load class "MyVendorNameSyliusMyPlugin" from namespace "MyVendorName\SyliusMyPlugin". Did you forget a "use" statement for another namespace ?

I really don't understand what to change and how to load the plugin ?

Darpen commented 1 year ago

For those who encounter this problem. It was my composer that was not autoloading my bundle because, in composer.json, i call my bundle with type "package". With type "vcs", everything works fine