# imagify/trunk/vendor/league/container/src/DefinitionContainerInterface.php

Imagify Image Optimization: Optimize Images | Compress &amp; Convert to WebP/AVIF, version trunk. 21 lines.

- Page: https://pluginprobe.com/plugins/imagify/trunk/code/vendor/league/container/src/DefinitionContainerInterface.php
- Raw: https://pluginprobe.com/plugins/imagify/trunk/raw/vendor/league/container/src/DefinitionContainerInterface.php
- Modified: 2026-05-25T15:55:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/imagify/trunk/code/vendor/league/container/src/DefinitionContainerInterface.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Imagify\Dependencies\League\Container;

use Imagify\Dependencies\League\Container\Definition\DefinitionInterface;
use Imagify\Dependencies\League\Container\Inflector\InflectorInterface;
use Imagify\Dependencies\League\Container\ServiceProvider\ServiceProviderInterface;
use Imagify\Dependencies\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;
}

```
