lib/Container.php
public function getServiceIdsForTag($tag)
    {
        $serviceIds = [];
        foreach ($this->tags as $serviceId => $tags) {
            if (isset($tags[$tag])) {
                $serviceIds[$serviceId] = $tags[$tag];
            }
        }

        return $serviceIds;
    }
public function getServiceIdsForTag($tag)
    {
        $serviceIds = [];
        foreach ($this->tags as $serviceId => $tags) {
            if (isset($tags[$tag])) {
                $serviceIds[$serviceId] = $tags[$tag];
            }
        }

        return $serviceIds;
    }
public function getServiceIdsForTag ( $ tag ) { $ serviceIds = [ ] ; foreach ( $ this -> tags as $ serviceId => $ tags ) { if ( isset ( $ tags [ $ tag ] ) ) { $ serviceIds [ $ serviceId ] = $ tags [ $ tag ] ; } } return $ serviceIds ; }
Return services IDs for the given tag.

@param string $tag

@return string[][]
Return services IDs for the given tag .