private function getContainerServices($item)
    {
        if (false === is_string($item)) {
            return $item;
        }

        $matches = array();
        if (preg_match('/^@([a-z0-9.-]+)$/i', trim($item), $matches)) {
            if ($this->has($matches[1])) {
                return $this->get($matches[1]);
            }
        }

        return $item;
    }
private function getContainerServices($item)
    {
        if (false === is_string($item)) {
            return $item;
        }

        $matches = array();
        if (preg_match('/^@([a-z0-9.-]+)$/i', trim($item), $matches)) {
            if ($this->has($matches[1])) {
                return $this->get($matches[1]);
            }
        }

        return $item;
    }
private function getContainerServices ( $ item ) { if ( false === is_string ( $ item ) ) { return $ item ; } $ matches = array ( ) ; if ( preg_match ( '/^@([a-z0-9.-]+)$/i' , trim ( $ item ) , $ matches ) ) { if ( $ this -> has ( $ matches [ 1 ] ) ) { return $ this -> get ( $ matches [ 1 ] ) ; } } return $ item ; }
Returns the associated service to item if exists, item itself otherwise.

@param string $item

@return mixed
Returns the associated service to item if exists item itself otherwise .