... der Composer treibt mich noch in den Wahnsinn
Wenn ich Contao mein neu erstelltes Bundle mittels "composer update" vorstellen möchte,
spuckt mir die Konsole immer folgenden Fehler aus:
Bildschirmfoto 2021-03-05 um 09.55.54.png
So sieht der Inhalt der Plugin.php aus:
PHP-Code:
declare(strict_types=1);
namespace GeorgPreissl\Projects\ContaoManager;
use Contao\CoreBundle\ContaoCoreBundle;
use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
use GeorgPreissl\ProjectsBundle\GeorgPreisslProjectsBundle;
/**
* @internal
*/
class Plugin implements BundlePluginInterface
{
public function getBundles(ParserInterface $parser): array
{
return [
BundleConfig::create(GeorgPreisslProjectsBundle::class)
->setLoadAfter([ContaoCoreBundle::class]),
];
}
}
So sieht die composer.json des Bundles aus:
PHP-Code:
{
"name": "georgpreissl/projects",
"type": "contao-bundle",
"license": "LGPL-3.0-or-later",
...
"require": {
"php": "^5.6|^7.0",
"contao/core-bundle": "~4.4"
},
"require-dev": {
"contao/manager-plugin": "^2.0"
},
"conflict": {
"contao/manager-plugin": "<2.0 || >=3.0"
},
"autoload": {
"psr-4": {
"GeorgPreissl\\Projects\\": "src/"
},
"classmap": [
"src/Resources/contao/"
],
"exclude-from-classmap": [
"src/Resources/contao/config/",
"src/Resources/contao/dca/",
"src/Resources/contao/languages/",
"src/Resources/contao/templates/"
]
},
"extra": {
"contao-manager-plugin": "GeorgPreissl\\Projects\\ContaoManager\\Plugin"
}
}
So sieht die composer.json im root aus:
PHP-Code:
{
"name": "contao/managed-edition",
...
"require": {
"php": "^7.2",
"contao/calendar-bundle": "^4.9",
"contao/comments-bundle": "^4.9",
"contao/conflicts": "@dev",
"contao/faq-bundle": "^4.9",
"contao/listing-bundle": "^4.9",
"contao/manager-bundle": "4.10.*",
"contao/news-bundle": "^4.9",
"contao/newsletter-bundle": "^4.9",
"georgpreissl/projects": "dev-master"
},
"repositories": [
{
"type": "path",
"url": "vendor/georgpreissl/projects"
}
],
"conflict": {
"contao-components/installer": "<1.3",
"contao/core-bundle": "<4.4.8"
},
"extra": {
"branch-alias": {
"dev-4.4": "4.4.x-dev"
},
"contao-component-dir": "assets"
},
"scripts": {
"post-install-cmd": [
"Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
],
"post-update-cmd": [
"Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
]
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"config": {
"platform": {
"php": "7.2.33"
}
}
}
... das müsste doch alles passen, oder?
Bei einem anderen Bundle funktioniert die exakt gleiche Konfiguration.
Ist das irgendein Cache-Problem?
Hätte ihn schon öfter gelöscht, bringt nix.
Weiß da leider nicht mehr weiter ...
Danke schon mal für eure Hilfe.
Lesezeichen