Getting service provider namespace

@param $item
@return mixed
420166
private function getServiceProviderNameSpace (stdClass $item)
    {
        return json_decode (file_get_contents ($item->rootDirectory . 'app/' . HCNewService::CONFIG_PATH))->general->serviceProviderNameSpace;
    }
759019
private function getContainerParameters($item)
    {
        $matches = array();
        if (preg_match('/^%([^%]+)%$/', $item, $matches)) {
            if ($this->hasParameter($matches[1])) {
                return $this->getParameter($matches[1]);
            }
        }

        if (preg_match_all('/%([^%]+)%/', $item, $matches, PREG_PATTERN_ORDER)) {
            foreach ($matches[1] as $expr) {
                if ($this->hasParameter($expr)) {
                    $item = str_replace('%'.$expr.'%', $this->getParameter($expr), $item);
                }
            }
        }

        return $item;
    }
617177
protected function getSoapNamespace(): string
    {
        if (!array_key_exists($this->soapVersion, static::SOAP_NAMESPACES)) {
            throw new InvalidArgumentException('Unsupported SOAP version');
        }

        return static::SOAP_NAMESPACES[$this->soapVersion];
    }
1094382
public function getStore($item = null)
    {
        if (isset($item)) {
            return gplcart_array_get($this->current_store, $item);
        }

        return $this->current_store;
    }
1198805
protected function getModelNamespace(string $name):string
    {
        if ($this->option('model')) {
            return $this->option('model');
        }

        return 'App\\' . str_replace('Transformer', '', $name);
    }
1249219
public function getIdentifier($namespace)
    {
        $namespace = Str::normalizeClassName($namespace);
        if (strpos($namespace, '\\') === null) {
            return $namespace;
        }

        $parts = explode('\\', $namespace);
        $slice = array_slice($parts, 1, 2);
        $namespace = implode('.', $slice);

        return $namespace;
    }
1004175
public function getNamespace()
    {
        if (is_null($this->_namespace)) {
            $namespace = $this->getConfiguration()
                ->get('router.namespace', 'Controllers');
            if (isset($this->_params['namespace'])) {
                $namespace = $this->_params['namespace'];
            }
            $this->_namespace = trim($namespace, '\\');
        }
        return $this->_namespace;
    }
345202
protected function getNamespaceURI($prefix)
    {
        $namespaces = $this->owner->config()->open_graph_namespaces;
        
        if (isset($namespaces[$prefix])) {
            return $namespaces[$prefix];
        }
    }
723979
public function getEditUrlFor($item)
    {
        $params = array('id' => $item['id']);
        $params = array_merge($params, $this->getExtraParameters());

        return array(
            'path' => $this->getPathByConvention($this::SUFFIX_EDIT),
            'params' => $params,
        );
    }
653979
protected function getConfig($item)
	{
		// Get config item value for a custom layout if it exists, even if blank
		if (!is_null(Config::get($this->configNamePrefix.$this->layout.'.'.$item)))
		{
			return Config::get($this->configNamePrefix.$this->layout.'.'.$item);
		}

		// Fallback to default config item value if custom one does exist
		else
		{
			return Config::get($this->configNamePrefix.$item);
		}
	}
404219
public function getItemAction(Item $item) {
        // TODO : Check if requesting user has access to the corresponding meeting container

        $view = $this->view($item, Response::HTTP_OK);

        return $this->handleView($view);
    }
143842
public function getItem($item, &$parents = [])
    {
        if (is_array($item) && !$this->isRoute($item)) {
            $item = $item['url'];
        }
        if (is_string($item) && strpos($item, '/') === false) {
            $item = implode('.items.', explode('.', $item));
            return ArrayHelper::getValue($this->getItems(), $item);
        }
        return $this->findItemRecursive($item, $this->getItems(), $parents);
    }
992926
public function getCatalogItem(array $item)
    {
        $sources = [$this->browser->getHost().$item['url']];
        if (!empty($item['world_art_id'])) {
            $sources[] = str_replace('#ID#', $item['world_art_id'], self::WORLD_ART_URL);
        }
        if (!empty($item['myanimelist_id'])) {
            $sources[] = str_replace('#ID#', $item['myanimelist_id'], self::MY_ANIME_LIST_URL);
        }
        if (!empty($item['ani_db_id'])) {
            $sources[] = str_replace('#ID#', $item['ani_db_id'], self::ANI_DB_URL);
        }
        /* @var $source \AnimeDb\Bundle\CatalogBundle\Entity\Source|null */
        $source = $this->repository->findOneBy(['url' => $sources]);
        if ($source instanceof Source) {
            return $source->getItem();
        }
        return null;
    }
794223
public function getItemUrl($item)
    {
        $item = $this->getItem($item);
        return $item ? $item->normalizedUrl : null;
    }
1036445
public function getDeleteUrlFor($item)
    {
        $params = array('id' => $item->getId(), 'popup' => $this->getPopupId());
        $params = array_merge($params, $this->getExtraParameters());

        return array(
            'path' => 'kunstmaanleadgenerationbundle_admin_rule_abstractrule_delete',
            'params' => $params,
        );
    }
500953
public function getWidgetItem(array $item) {
        $entity = new ItemWidget();

        $entity->setName($this->getItemName($item));
        $entity->setLink($this->browser->getHost().$item['url']);
        $entity->setCover($this->browser->getHost().$item['image']['original']);

        $catalog_item = $this->getCatalogItem($item);
        if ($catalog_item instanceof Item) {
            $entity->setItem($catalog_item);
        } elseif ($this->filler instanceof Filler) {
            $entity->setLinkForFill($this->filler->getLinkForFill($entity->getLink()));
        }

        return $entity;
    }
225116
public static function menuLink($item)
    {
        $app = \JFactory::getApplication();
        $menu = $app->getMenu();
        $item = $menu->getItem($item);

        return \JRoute::_($item->link . '&Itemid=' . $item->id);
    }