3 Commits

Author SHA1 Message Date
Jürgen Mummert
ca7f7d759b Fix bundle path resolution so tl_pinnwand schema is detected 2026-03-04 16:29:26 +01:00
Jürgen Mummert
5c1fda002c Fix service loading and model compatibility for Contao 5.7 2026-03-04 16:17:41 +01:00
Jürgen Mummert
4a183ca344 fix: improve bundle auto-enable compatibility 2026-03-04 16:01:41 +01:00
5 changed files with 35 additions and 5 deletions

View File

@@ -14,6 +14,12 @@ Contao 5.7 Bundle für eine Pinwand mit frei angeordneten Pinnwandeinträgen.
## Installation (Bundle im Projekt einbinden)
1. Bundle per Composer einbinden.
2. Cache leeren.
3. Datenbank aktualisieren.
4. Assets installieren, damit CSS/JS unter `bundles/contaopinboard/` verfügbar sind.
2. Falls Composer-Plugins im Zielsystem eingeschränkt sind, Bundle manuell in `config/bundles.php` aktivieren:
```php
Eiswurm\ContaoPinboardBundle\ContaoPinboardBundle::class => ['all' => true],
```
3. Cache leeren.
4. Datenbank aktualisieren.
5. Assets installieren, damit CSS/JS unter `bundles/contaopinboard/` verfügbar sind.

View File

@@ -5,7 +5,8 @@
"license": "proprietary",
"require": {
"php": "^8.4",
"contao/core-bundle": "^5.7"
"contao/core-bundle": "^5.7",
"contao/manager-plugin": "^2.0"
},
"autoload": {
"psr-4": {

View File

@@ -8,4 +8,8 @@ use Symfony\Component\HttpKernel\Bundle\Bundle;
final class ContaoPinboardBundle extends Bundle
{
public function getPath(): string
{
return dirname(__DIR__);
}
}

View File

@@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
namespace Eiswurm\ContaoPinboardBundle\DependencyInjection;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
final class ContaoPinboardExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container): void
{
$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../../contao/config'));
$loader->load('services.yaml');
}
}

View File

@@ -8,5 +8,5 @@ use Contao\Model;
final class PinboardModel extends Model
{
protected static string $strTable = 'tl_pinnwand';
protected static $strTable = 'tl_pinnwand';
}