| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace Imagify\Dependencies\League\Container; |
| 6 |
|
| 7 |
use Imagify\Dependencies\League\Container\Definition\DefinitionInterface; |
| 8 |
use Imagify\Dependencies\League\Container\Inflector\InflectorInterface; |
| 9 |
use Imagify\Dependencies\League\Container\ServiceProvider\ServiceProviderInterface; |
| 10 |
use Imagify\Dependencies\Psr\Container\ContainerInterface; |
| 11 |
|
| 12 |
interface DefinitionContainerInterface extends ContainerInterface |
| 13 |
{ |
| 14 |
public function add(string $id, $concrete = null): DefinitionInterface; |
| 15 |
public function addServiceProvider(ServiceProviderInterface $provider): self; |
| 16 |
public function addShared(string $id, $concrete = null): DefinitionInterface; |
| 17 |
public function extend(string $id): DefinitionInterface; |
| 18 |
public function getNew($id); |
| 19 |
public function inflector(string $type, ?callable $callback = null): InflectorInterface; |
| 20 |
} |
| 21 |
|