Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c1fda002c |
19
src/DependencyInjection/ContaoPinboardExtension.php
Normal file
19
src/DependencyInjection/ContaoPinboardExtension.php
Normal 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');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -8,5 +8,5 @@ use Contao\Model;
|
|||||||
|
|
||||||
final class PinboardModel extends Model
|
final class PinboardModel extends Model
|
||||||
{
|
{
|
||||||
protected static string $strTable = 'tl_pinnwand';
|
protected static $strTable = 'tl_pinnwand';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user