Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c1fda002c | ||
|
|
4a183ca344 |
12
README.md
12
README.md
@@ -14,6 +14,12 @@ Contao 5.7 Bundle für eine Pinwand mit frei angeordneten Pinnwandeinträgen.
|
|||||||
## Installation (Bundle im Projekt einbinden)
|
## Installation (Bundle im Projekt einbinden)
|
||||||
|
|
||||||
1. Bundle per Composer einbinden.
|
1. Bundle per Composer einbinden.
|
||||||
2. Cache leeren.
|
2. Falls Composer-Plugins im Zielsystem eingeschränkt sind, Bundle manuell in `config/bundles.php` aktivieren:
|
||||||
3. Datenbank aktualisieren.
|
|
||||||
4. Assets installieren, damit CSS/JS unter `bundles/contaopinboard/` verfügbar sind.
|
```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.
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
"license": "proprietary",
|
"license": "proprietary",
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.4",
|
"php": "^8.4",
|
||||||
"contao/core-bundle": "^5.7"
|
"contao/core-bundle": "^5.7",
|
||||||
|
"contao/manager-plugin": "^2.0"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
|||||||
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