vendor/sulu/sulu/src/Sulu/Bundle/MediaBundle/SuluMediaBundle.php line 24
<?php
/*
* This file is part of Sulu.
*
* (c) Sulu GmbH
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Sulu\Bundle\MediaBundle;
use Sulu\Bundle\MediaBundle\DependencyInjection\FormatCacheClearerCompilerPass;
use Sulu\Bundle\MediaBundle\DependencyInjection\ImageFormatCompilerPass;
use Sulu\Bundle\MediaBundle\DependencyInjection\ImageTransformationCompilerPass;
use Sulu\Bundle\MediaBundle\DependencyInjection\S3ClientCompilerPass;
use Sulu\Bundle\MediaBundle\Entity\CollectionInterface;
use Sulu\Bundle\MediaBundle\Entity\MediaInterface;
use Sulu\Bundle\PersistenceBundle\PersistenceBundleTrait;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class SuluMediaBundle extends Bundle
{
use PersistenceBundleTrait;
public function build(ContainerBuilder $container)
{
$this->buildPersistence(
[
MediaInterface::class => 'sulu.model.media.class',
CollectionInterface::class => 'sulu.model.collection.class',
],
$container
);
$container->addCompilerPass(new FormatCacheClearerCompilerPass());
$container->addCompilerPass(new ImageFormatCompilerPass());
$container->addCompilerPass(new ImageTransformationCompilerPass());
$container->addCompilerPass(new S3ClientCompilerPass());
parent::build($container);
}
}