Hallo,
ich versuche mich an einer Plug-inentwicklung. Plug-in erscheint in der Liste. Aber mit dem Befehl:
vagrant@dev:~/shopware-dev$ ./bin/console plugin:install –activate –clearCache SW6TutorialPlugin
wird folgender Fehler erzeugt:
The class "R22\SW6TutorialPlugin\SW6TutorialPlugin" is not found. Probably an class loader error. Check your plugin composer.json
Dazu meine composer.json
{
"name": "r22/sw6-tutorial-plugin",
"description": "Tutorial Plugin Entwicklung für Shopware 6",
"version": "v1.0.0",
"license": "MIT",
"authors": [
{
"name": "Max Mustermann"
}
],
"require": {
"shopware/core": "*",
"shopware/storefront": "*"
},
"type": "shopware-platform-plugin",
"autoload": {
"psr-4": {
"R22\\SW6TutorialPlugin\\": "src/"
}
},
"extra": {
"shopware-plugin-class": "R22\\SW6TutorialPlugin\\SW6TutorialPlugin",
"copyright": "(C) Max Mustermann",
"label": {
"de-DE": "Tutorial Shopware 6",
"en-GB": "Tutorial Shopware 6"
}
}
}
meine Verzeichnisstruktur:
> ...
> custom
-> plugins
--> SW6TutorialPlugin
----> src
------> SW6TutorialPlugin.php
----> composer.json
meine SW6TutorialPlugin.php
Wo habe ich welchen Fehler gemacht?