Fix service loading and model compatibility for Contao 5.7

This commit is contained in:
Jürgen Mummert
2026-03-04 16:17:41 +01:00
parent 4a183ca344
commit 5c1fda002c
2 changed files with 20 additions and 1 deletions

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';
}