Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca7f7d759b | ||
|
|
5c1fda002c |
@@ -8,4 +8,8 @@ use Symfony\Component\HttpKernel\Bundle\Bundle;
|
|||||||
|
|
||||||
final class ContaoPinboardBundle extends Bundle
|
final class ContaoPinboardBundle extends Bundle
|
||||||
{
|
{
|
||||||
|
public function getPath(): string
|
||||||
|
{
|
||||||
|
return dirname(__DIR__);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
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