Issues (8)

src/ContainerRegistryInterface.php (1 issue)

1
<?php
2
3
/*
4
 *  This file is part of the Micro framework package.
5
 *
6
 *  (c) Stanislau Komar <[email protected]>
7
 *
8
 *  For the full copyright and license information, please view the LICENSE
9
 *  file that was distributed with this source code.
10
 */
11
12
namespace Micro\Component\DependencyInjection;
13
14
interface ContainerRegistryInterface
15
{
16
    /**
17
     * Register new service.
18
     *
19
     * @template T of Object
20
     *
21
     * @param class-string<T> $id      service alias
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string<T> at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string<T>.
Loading history...
22
     * @param callable        $service service initialization callback
23
     */
24
    public function register(string $id, callable $service, bool $force = false): void;
25
}
26