This commit is contained in:
Sebastian Molenda
2026-05-12 21:10:38 +02:00
commit ab96d82fcf
2544 changed files with 721700 additions and 0 deletions
@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
namespace League\Container\Definition;
use IteratorAggregate;
use League\Container\ContainerAwareInterface;
interface DefinitionAggregateInterface extends ContainerAwareInterface, IteratorAggregate
{
public function add(string $id, mixed $definition, bool $overwrite = false): DefinitionInterface;
public function addShared(string $id, mixed $definition, bool $overwrite = false): DefinitionInterface;
public function getDefinition(string $id): DefinitionInterface;
public function has(string $id): bool;
public function hasTag(string $tag): bool;
public function resolve(string $id): mixed;
public function resolveNew(string $id): mixed;
public function resolveTagged(string $tag): array;
public function resolveTaggedNew(string $tag): array;
}