Hi,
Ich bin jetzt gerade wieder dabei mir bei zu bringen ein Modul selbst zu erstellen und hänge nun wieder wie in der Oxid Schulung auch bei der composer installation des modules.
Ich habe einmal folgendes Modul genommen und dieses auch erfolgreich installiert.
Ich hab das dann kopiert und per search replace vendorID, ModulID und Namespace abgeändert
Ich habe das mal hoch geladen
Das Modul liegt aktuell unter moidules/gripgate/gg_oxid6-example-module
Zudem habe ich im Shop root composer.json folgendes stehen
{
"name": "oxid-esales/oxideshop-project",
"type": "project",
"description": "This file should be used as an OXID eShop project root composer.json file. Entries provided here intended to be examples and could be changed to your specific needs.",
"license": [
"GPL-3.0-only",
"proprietary"
],
"minimum-stability": "stable",
"repositories": [
{
"type": "composer",
"url": "https://professional-edition.packages.oxid-esales.com/"
},
{
"type": "path",
"url": "./source/modules/gripgate/gg_oxid6-example-module"
}
],
"require": {
"oxid-esales/oxideshop-metapackage-pe": "v6.1.0",
"linslin/oxid6-example-module": "dev-master",
"oxid-esales/module-generator": "dev-master",
"gripgate/gg_oxid6-example-module": "dev-master"
},
"require-dev": {
"oxid-esales/testing-library": "^v5.0.3",
"oxid-esales/coding-standards": "^v3.0.5",
"incenteev/composer-parameter-handler": "~v2.0",
"oxid-esales/oxideshop-ide-helper": "^v3.1.1",
"oxid-esales/azure-theme": "^v1.4.1"
},
"autoload-dev": {
"psr-4": {
"OxidEsales\\EshopCommunity\\Tests\\": "./vendor/oxid-esales/oxideshop-ce/tests",
"gripgate\\oxid6ExampleModule2\\": "../../../source/modules/gripgate/gg_oxid6-example-module"
}
},
"scripts": {
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"@oe:ide-helper:generate"
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"@oe:ide-helper:generate"
],
"oe:ide-helper:generate": [
"if [ -f ./vendor/bin/oe-eshop-ide_helper ]; then oe-eshop-ide_helper; fi"
]
},
"config": {
"preferred-install": {
"*": "dist"
}
},
"extra": {
"incenteev-parameters": {
"file": "test_config.yml",
"dist-file": "vendor/oxid-esales/testing-library/test_config.yml.dist",
"parameter-key": "mandatory_parameters",
"env-map": {
"shop_path": "SHOP_PATH",
"shop_tests_path": "SHOP_TESTS_PATH",
"partial_module_paths": "PARTIAL_MODULE_PATHS"
}
}
}
}
Bei der composer installation
composer require gripgate/gg_oxid6-example-module:*
composer require gripgate/gg_oxid6-example-module:dev-master
bekomme ich allerdings immer den Fehler
[InvalidArgumentException]
Could not find a matching version of package gripgate/gg_oxid6-example-module. Check the package spelling, your version constraint and that the package is available in a stability which matches
your minimum-stability (stable).