Go\Core\Container::getByTag PHP 메소드

getByTag() 공개 메소드

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