File "ContainerRuntimeLoader.php"

Full Path: /home/warrior1/public_html/plugins/mailpoet/vendor-prefixed/twig/twig/src/RuntimeLoader/ContainerRuntimeLoader.php
File size: 442 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
namespace MailPoetVendor\Twig\RuntimeLoader;
if (!defined('ABSPATH')) exit;
use MailPoetVendor\Psr\Container\ContainerInterface;
class ContainerRuntimeLoader implements RuntimeLoaderInterface
{
 private $container;
 public function __construct(ContainerInterface $container)
 {
 $this->container = $container;
 }
 public function load(string $class)
 {
 return $this->container->has($class) ? $this->container->get($class) : null;
 }
}