[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.133.136.117: ~ $
<?php

namespace MailPoet\DI;

if (!defined('ABSPATH')) exit;


use MailPoetVendor\Symfony\Component\DependencyInjection\Container;
use MailPoetVendor\Symfony\Component\DependencyInjection\ContainerBuilder;

class ContainerFactory {

  /** @var IContainerConfigurator */
  private $configurator;

  public function __construct(
    IContainerConfigurator $configurator
  ) {
    $this->configurator = $configurator;
  }

  /**
   * @return Container
   */
  public function getContainer() {
    $dumpClass = '\\' . $this->configurator->getDumpNamespace() . '\\' . $this->configurator->getDumpClassname();
    if (class_exists($dumpClass)) {
      $container = new $dumpClass();
    } else { // Only for dev environment
      $container = $this->getConfiguredContainer();
      $container->compile();
    }
    return $container;
  }

  public function getConfiguredContainer() {
    return $this->configurator->configure(new ContainerBuilder());
  }
}

Filemanager

Name Type Size Permission Actions
ContainerConfigurator.php File 31.18 KB 0644
ContainerFactory.php File 952 B 0644
ContainerWrapper.php File 2.38 KB 0644
IContainerConfigurator.php File 432 B 0644
index.php File 0 B 0644