Файловый менеджер - Редактировать - /home/harasnat/www/labour/wp-content/plugins/woocommerce-payments/lib/packages/League/Container/ContainerAwareTrait.php
Назад
<?php declare(strict_types=1); namespace WCPay\Vendor\League\Container; use BadMethodCallException; use WCPay\Vendor\League\Container\Exception\ContainerException; trait ContainerAwareTrait { /** * @var ?DefinitionContainerInterface */ protected $container; public function setContainer(DefinitionContainerInterface $container): ContainerAwareInterface { $this->container = $container; if ($this instanceof ContainerAwareInterface) { return $this; } throw new BadMethodCallException(sprintf( 'Attempt to use (%s) while not implementing (%s)', ContainerAwareTrait::class, ContainerAwareInterface::class )); } public function getContainer(): DefinitionContainerInterface { if ($this->container instanceof DefinitionContainerInterface) { return $this->container; } throw new ContainerException('No container implementation has been set.'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка