Go\Core\Container::getByTag PHP Method

getByTag() public method

Return list of service tagged with marker
public getByTag ( string $tag ) : array
$tag string Tag to select
return array
    public function getByTag($tag)
    {
        $result = [];
        if (isset($this->tags[$tag])) {
            foreach ($this->tags[$tag] as $id) {
                $result[$id] = $this->get($id);
            }
        }
        return $result;
    }