vendor/thecadien/sulu-news-bundle/NewsBundle.php line 21
<?php
declare(strict_types=1);
/*
* This file is part of TheCadien/SuluNewsBundle.
*
* (c) Oliver Kossin
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace TheCadien\Bundle\SuluNewsBundle;
use Sulu\Bundle\PersistenceBundle\PersistenceBundleTrait;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use TheCadien\Bundle\SuluNewsBundle\Entity\NewsInterface;
class NewsBundle extends Bundle
{
use PersistenceBundleTrait;
public function build(ContainerBuilder $container): void
{
$this->buildPersistence(
[
NewsInterface::class => 'sulu.model.news.class',
],
$container
);
}
}