🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-19 11:15:37 | PHP 8.1.34
📂
/ (Root)
/
home
/
therahul
/
thedasstores.com
/
wp-content
/
plugins
/
mailpoet
/
lib
/
API
/
REST
📍 /home/therahul/thedasstores.com/wp-content/plugins/mailpoet/lib/API/REST
🔄 Refresh
✏️
Editing: EndpointContainer.php
Writable
<?php declare(strict_types = 1); namespace MailPoet\API\REST; if (!defined('ABSPATH')) exit; use MailPoet\InvalidStateException; use MailPoetVendor\Psr\Container\ContainerInterface; class EndpointContainer { /** @var ContainerInterface */ private $container; public function __construct( ContainerInterface $container ) { $this->container = $container; } public function get(string $class): Endpoint { $endpoint = $this->container->get($class); if (!$endpoint instanceof Endpoint) { throw new InvalidStateException(sprintf("Class '%s' doesn't implement '%s'", $class, Endpoint::class)); } return $endpoint; } }
💾 Save Changes
❌ Cancel