- Add DISCOVERY_LOG_LEVEL=debug - Add DISCOVERY_SHOW_PROGRESS=true - Temporary changes for debugging InitializerProcessor fixes on production
28 lines
620 B
PHP
28 lines
620 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Framework\DI;
|
|
|
|
interface Container
|
|
{
|
|
public MethodInvoker $invoker {get;}
|
|
|
|
/**
|
|
* @template T of object
|
|
* @param class-string<T> $class
|
|
* @return T
|
|
*/
|
|
public function get(string $class): object;
|
|
|
|
public function has(string $class): bool;
|
|
|
|
public function bind(string $abstract, callable|string|object $concrete): void;
|
|
|
|
public function singleton(string $abstract, callable|string|object $concrete): void;
|
|
|
|
public function instance(string $abstract, object $instance): void;
|
|
|
|
public function forget(string $class): void;
|
|
}
|