for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Zenstruck\Foundry\Tests\Functional;
use Psr\Container\ContainerInterface;
/**
* @author Kevin Bond <[email protected]>
*/
trait ContainerBC
{
private static function container(): ContainerInterface
if (!\method_exists(static::class, 'getContainer')) {
if (!static::$booted) {
static::bootKernel();
}
return self::$container;
return self::getContainer();