Hallo,
wie mal ein Problem wo ich auf den Schlauchstehe.
Console sagt mir immer "The Symfony bundle "Ralf\Test\TestBundle" does not exist."
composer.json
PHP-Code:
....
"autoload": {
"classmap": [
"src/ralf/test/ContaoManagerPlugin.php",
"src/ralf/test/Resources/contao"
],
"psr-4" : {
"": "src/"
},
"exclude-from-classmap": [
"src/ralf/test/Resources/contao/config/",
"src/ralf/test/Resources/contao/dca/",
"src/ralf/test/Resources/contao/languages/",
"src/ralf/test/Resources/contao/templates/"
]
}
Plugin
PHP-Code:
<?php
use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
use Contao\CoreBundle\ContaoCoreBundle;
use Ralf\Test\TestBundle;
class ContaoManagerPlugin implements BundlePluginInterface {
public function getBundles(ParserInterface $parser) {
return [
BundleConfig::create(TestBundle::class)->setLoadAfter([ContaoCoreBundle::class])
];
}
}
Wenn ich hier den namespace hinzufüge Ralf\Test wird es gefunden. Aber man sieht keine Änderung im Backend.
TestBundle.php
PHP-Code:
<?php
namespace Ralf\Test;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class TestBundleextends Bundle {
}
Lesezeichen