Go\Core\Container::set PHP Method

set() public method

Set a service into the container
public set ( string $id, mixed $value, array $tags = [] )
$id string Identifier
$value mixed Value to store
$tags array Additional tags
    public function set($id, $value, array $tags = [])
    {
        $this->values[$id] = $value;
        foreach ($tags as $tag) {
            $this->tags[$tag][] = $id;
        }
    }