The Symfony bundle "PBDKN\Extassets\ContaoExtassets" does not exist.
Hallo Ihr alle. Ich bin fast am verzweifeln.
Ich habe schon einige Bundles erstellt, aber bei diesem geht es nicht.
Ich habe Contao neu aufgesetzt. Das Repository ist local.
Nach dem Fehler ist das Bundle im Vendor-Verzeichnis und die Klassen sind im composer zum autoload enthalten.
Ich schicke mal alles was mir relevant erscheint.
Wo ist mein Balken im Auge
Hier zuerst meine composer.json
Website
Code:
{
"type": "project",
"require": {
"bugbuster/contao-visitors-bundle": "^1.6",
"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.9.*",
"contao/news-bundle": "4.9.*",
"contao/newsletter-bundle": "4.9.*",
"pbd-kn/contao-efg-bundle": "1.0.4-RC2",
"pbd-kn/contao-inputvar-bundle": "^1.0",
"pbd-kn/contao-extassets": "@dev"
},
"repositories": [
{
"type": "path",
"url": "../../Github Bundles/contao-extassets"
}
],
"extra": {
"contao-component-dir": "assets"
},
"scripts": {
"post-install-cmd": [
"Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
],
"post-update-cmd": [
"Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
]
}
}
Bundle
Code:
{
"name": "pbd-kn/contao-extassets",
"description":"External CSS & JS assets groups with bootstrap and font-awesome support",
"keywords":["contao", "css", "js", "bootstrap", "font awesome"],
"type": "contao-module",
"license":"LGPL-3.0+",
"authors":[
{
"name":"Heimrich & Hannot",
"email":"digitales@heimrich-hannot.de",
"homepage":"http://www.heimrich-hannot.de",
"role":"Developer"
},
{
"name": "pbd-kn",
"email": "pb-contao@gmx.de",
"role": "Developer"
}
],
"require": {
"php": "^7.2 || ^8.0",
"contao/core-bundle": "^4.9",
"codefog/contao-haste": "^4.24",
"symfony/config": "^4.4 || ^5.1",
"symfony/dependency-injection": "^4.4 || ^5.1"
},
"autoload": {
"psr-4": {
"PBDKN\\ExtAssets\\":"src/"
}
},
"extra": {
"contao-manager-plugin": "PBDKN\\ExtAssets\\ContaoManager\\Plugin"
},
"autoload-dev": {
"psr-4": {
"PBDKN\\ExtAssets\\Tests\\": "tests/"
}
},
"support":{
"issues":"https://github.com/pbd-kn/contao-extassets/issues",
"source": "https://github.com/pbd-kn/contao-extassets"
},
"scripts": {
"cs-fixer": [
"vendor/bin/ecs check src/ tests/ --fix --ansi"
]
}}
Nun meinen Code für den Conta0-Manager
Contaoextassets.php
PHP-Code:
<?php
declare(strict_types=1);
namespace PBDKN\ExtAssets;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class ContaoExtassets extends Bundle
{
}
plugin für Contaomanager
PHP-Code:
<?php
declare(strict_types=1);
namespace PBDKN\ExtAssets\ContaoManager;
use Contao\CoreBundle\ContaoCoreBundle;
use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
use PBDKN\Extassets\ContaoExtassets;
class Plugin implements BundlePluginInterface
{
public function getBundles(ParserInterface $parser)
{
return [
BundleConfig::create(ContaoExtassets::class)
->setLoadAfter([ContaoCoreBundle::class]),
];
}
}
und nun das Ergebnis des Contaomanagers
composer update
Code:
.....
[137.6MiB/79.10s] - Locking paragonie/random_compat (v9.99.99)
[137.6MiB/79.10s] - Locking patchwork/utf8 (v1.3.3)
[137.6MiB/79.10s] - Locking pbd-kn/contao-efg-bundle (1.0.4-RC2)
[137.6MiB/79.10s] - Locking pbd-kn/contao-extassets (dev-master)
[137.6MiB/79.10s] - Locking pbd-kn/contao-inputvar-bundle (1.0.5)
[137.6MiB/79.10s] - Locking php-cs-fixer/diff (v1.3.1)
[137.6MiB/79.10s] - Locking php-http/client-common (2.3.0)
[137.6MiB/79.10s] - Locking php-http/discovery (1.14.0)
.....
Composer install
Code:
107 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
PHP CodeSniffer Config installed_paths set to ../../slevomat/coding-standard
contao/manager-plugin: Generating plugin class...
contao/manager-plugin: ...done generating plugin class
> Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication
In BundleConfig.php line 153:
The Symfony bundle "PBDKN\Extassets\ContaoExtassets" does not exist.
Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-install-cmd event terminated with an exception
In ScriptHandler.php line 89:
An error occurred while executing the "contao:install-web-dir" command:
In BundleConfig.php line 153:
The Symfony bundle "PBDKN\Extassets\ContaoExtassets" does not exist.
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-scripts] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>...]
# Process terminated with exit code 1