21 lines
830 B
PHP
21 lines
830 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace WCPay\Vendor\League\Container;
|
|
|
|
use WCPay\Vendor\League\Container\Definition\DefinitionInterface;
|
|
use WCPay\Vendor\League\Container\Inflector\InflectorInterface;
|
|
use WCPay\Vendor\League\Container\ServiceProvider\ServiceProviderInterface;
|
|
use WCPay\Vendor\Psr\Container\ContainerInterface;
|
|
|
|
interface DefinitionContainerInterface extends ContainerInterface
|
|
{
|
|
public function add(string $id, $concrete = null): DefinitionInterface;
|
|
public function addServiceProvider(ServiceProviderInterface $provider): self;
|
|
public function addShared(string $id, $concrete = null): DefinitionInterface;
|
|
public function extend(string $id): DefinitionInterface;
|
|
public function getNew($id);
|
|
public function inflector(string $type, ?callable $callback = null): InflectorInterface;
|
|
}
|