<?php
namespace Globosphere\S3Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class S3Bundle extends Bundle
{
private static ContainerInterface $containerInstance;
public function build(ContainerBuilder $container)
{
parent::build($container);
}
public function setContainer(ContainerInterface $container = null): void
{
parent::setContainer($container);
if ($container instanceof ContainerInterface) {
self::$containerInstance = $container;
}
}
/**
* @return ContainerInterface
*/
public static function getContainer(): ContainerInterface
{
return self::$containerInstance;
}
public function getPath(): string
{
return dirname(__DIR__);
}
}